VS 2008 [updated And Still Open]Regex - (") Messing Up The Syntax

Nov 4, 2009

Can I get an english explanation of .*? I kinda know what it does, but a breakdown would be nice on the logic behind it. Also, in the same manner, I'm after the specification for special characters, especially " but if it's doable, for as many special characters, or all of em as long as " is included.

EDIT: Might as well include the entire context, because I'll prolly be asking this in another thread in 15 minutes.

[Code]...

View 3 Replies


ADVERTISEMENT

VS 2008 Messing With Progress Bar

Jun 3, 2010

Been taking a programming class in school for the last year and we haven't really done anything with a progress bar so I was curious to see what I can do with it. I found some basic code to see how it worked and I get it.[code]However, instead of having a fixed time, I want the maximum to represent the time it takes for something to be done whether it be loading a new form, searching for something, etc. I don't know if that made sense, but basically I want the progress bar to react accordingly to the time it takes to do something.For example, in this little test project I just want the progress bar to represent the time it takes to load form2. I believe you'd have to change the maximum. However, I don't know how to get Form2's load time to be able to put it in the progress bar's maximum.

View 3 Replies

VS 2008 RTF Tags / Code Messing Up

Mar 5, 2010

I'm having a problem when saving a text file. I'm trying to save a text file from a rich text box but these tag things are messing it up like this:

[Code]...

View 3 Replies

Sql - .net Regex Character Syntax?

Feb 18, 2011

I can't get my sql query using regex to work in vb.net. If I write

Dim localConnection As New MySqlConnection = ConnectionNew(DBName)
Dim da as MysqlDataAdapter
Dim ds as new DataSet
Dim rows as long

[code]....

It returns null, even though there is a cell containing "ABC". When I run it directly on the database, it returns the row correctly.If I remove the [A-Z], it works fine in both circumstances.

View 1 Replies

Controls On Form1 Not Updated If Form2 Is Open

Feb 4, 2012

When I hit the submit button I want the entered data to appear in textboxes on groupForm, but this isn't happening. I have to restart the form or hit the Refresh button for the data to appear.[code]...

I added groupForm.populate() at the end of the latter function for testing purposes, but I know that shouldn't be necessary ("populate" just loops over all items in the ProfitObjects array and calls NewProfitObjectsItem for each one).

Anyway; when I submit the data from the second form, the groupForm doesn't automatically show the new data. I either have to hit the refresh button or restart the form (it calls populate() on form load).

I simply want the new item to appear immediately after Submitting it. And it should, because that's what groupForm.NewProfitObjectsItem() does. And to top it off I added groupForm.populate(). I'm assuming it's not working because it's called from an external form, or because the other form is open/has the focus.

View 2 Replies

Data Source Updated As Well When The Variable Is Updated?

Jul 1, 2009

part of my code is in below

[Code]...

I would expect to see the path.Path include the new record, however, I also notice that tempnextgen also include the new record. Can anyone help me out on this issue? Why the tempnextgen got updated as well, how to prevent this unexpected operation?

View 3 Replies

WinHttpRequest.Open Regex For Url Path?

Apr 28, 2010

I am trying to automate a daily download of a file on one of our customer's sites. I have run into a challenge because the file name does not fit into a patter. The file name in addition to the days date usually contains about 12 digits randomly generated by their system. what I need to do in order to automate this?

Const HTTP_PATH = "https://sitewithfiles.com/vendor/"
Const LOCAL_PATH = "\mycomputerdownloads"
Public Sub Get_daily()

[Code].....

View 2 Replies

Localization Is Messing With Form Layout?

Jan 13, 2011

I am working on implementing localization in a winforms app and I went the route of setting the Localization property on the form to True and setting the default language to english,spanish, german, dutch and a few more. When I click on English the form displays correctly, when I click on Spanish or French it makes the panels inside the form small and the controls within it small. It doesn't allow me to resize anything or more the panel

View 1 Replies

OpenFile Dialog Messing With Path

Jun 8, 2010

I am using vb.net 2003 and an Access database connected via Jet 4.0 OleDb. I have identified the location of my database using a relative path with [code]My program was working fine and I began making some cosmetic changes.I thought it would be a nice touch to add a PictureBox on the first form and allow the user to select the image that he would like to see when running the program.I added a menu item to "change the picture" and on a form added an OpenFile Dialog. I added code to capture the location of the selected file and used it to identify the image to be shown.I included a table in my database to store the file name and path which is loaded when the program starts.This all worked fine. I could change from picture to picture and the image would be updated each time in the picture box and in the database. I could access the database and perform all of the functions of the program.

That is as long as the image files that I selected were located in program startup directory. If I selected an image with the openfile dialog which was located else where then I could no longer contect to the database. I receive an "unhandled exceptions error". Below is the openfle code:[code]Can anyone help me with the proper way to get set up the open file dialog so that the results do not conflict with my database connection, or re-establish the connection?[code]

View 2 Replies

C# - Internet Explorer 8 Messing Up Website Look And Feel?

Jul 9, 2009

My website look and feel is not 100% the same in Internet Explorer 8 as it use to be with Internet Explorer 7. My site is created with VS 2005 and ASP.NET 2.0.

How can I fix this?Is there a way to fix this?

Edit:For those who want to see my website, it is Located Here - Some borders are diff. and the Email/Username text box in the Login Control in WAY at the top and actual Login Control width is less now.

Edit:Those who view my site from now on will not see what I am talking about from now on since I made some changes to the site and fixed the problems.

View 10 Replies

Copy Current Program In VB Without Messing Up The Original?

Jul 11, 2009

I have a current program that I have developed using visual basic and it does everything I want, however, I would like to "experiment" with the code and add other things to it but I don't want to mess up the code by working on my original project. How do I copy the project so I have it safe and have one I can "play" with.

View 4 Replies

VS 2005 DGV Vert Scrollbar Messing With Listbox Position

May 16, 2012

Very simply, I'm positioning a small ListBox over a DataGridView column when the user right-clicks and selects "Show Distinct Values". This works fine until the vertical scrollbar of the DataGridView is clicked. Once that's done the listbox pops up all the way over to the left edge of the DataGridView. As confirmation of the problem I created a small app to test with.

[Code]...

View 2 Replies

VS 2010 Button Focus Messing Up Keydown Events?

Mar 4, 2011

I have an application similar to calculator, with button from 0 to 9, Enter and Clear. I made it possible to use the buttons by clicking on them and also by using numpad, like shown below: Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown

Select Case e.KeyCode

[Code]...

View 5 Replies

VS 2008 Updated Database, Now Need To Re-read?

Mar 24, 2010

I've updated my database...

And all the information goes in fine, and an Auto-Number is allocated.

Do I need to re-read the database to find & display this auto-number?

Where do I begin?

View 15 Replies

VS 2008 Updated Other Record If Exists?

Sep 25, 2011

i can't find any wrong, if record exists then updated the record but only can insert the new record.

cannot updated the record.why?

[Code]...

View 6 Replies

VS 2008 - Connected Clients - Updated Attachments!

Aug 12, 2009

Attached are my source files i found a source and messed about with it, itsa chat client and a server which listens to clients anyway the server sends out all the messages to each client, all i want to be able todo is have a little box in my client, which is there, but has no function, its meant to list all the users currently connected.

View 4 Replies

VS 2008 Data Not Updated Using LINQ + Sql 2000

Dec 28, 2010

[Code]...

I have the following records in the table student(see in fig 1). I am trying to update the Name of student whose Roll no =1. But Record is not updated in the database,

View 2 Replies

VS 2008 Updated DataGridView - Sending Updates To DB

Oct 12, 2010

I have code similar to the code below that works in other parts of my program. The reason the code below does not work is because the datatable is made up of data from two separate tables. Does anyone know how to make this work for multiple tables? Can I choose what fields to send back and where to send them? This is what fills my datagridview and it works fine.

[Code]....

View 9 Replies

VS 2008 Create A System For Notification Of Updated Software

Jan 8, 2010

I need to implement a notification system software for each new verson, I am interested only inform the user of the presence of updates, not autoupdate software, how can I do?

View 15 Replies

VS 2008 UI Gets Updated And Background Code Functions Correctly

Nov 19, 2010

In order to multithread correctly, so that my UI gets updated and the background code functions correctly, I've been doing this:I have one sub that does the UI updating and checks for invocation: [code] However, I need to update the UI within the Class now. When I do that, my app is no longer responsive. I need to do all UI updating within the form class and all background code within my custom class.I just can't figure out how to determine at what part my class is at, to update the UI.The UI has a few labels and a picture box that needs updating. As it runs a new process, (about 8 in all) I need to update the picture box and labels with the appropriate information so that the user knows where the app is at.

View 7 Replies

VS 2008 Window Handles ,SetWindowPos API And ShowWindow API -Updated

Aug 5, 2009

1. I have an array of windows handles (list of window handles) which are windows I want to minimize when I call the ShowWindow API. But when I call it it sometimes minimizes other windows which aren't the windows I had before. I'm guessing that window handles are changed when other windows are being opened, is there is any option to detect a window in other way? like identity or something like that?

2. I'm trying to change a window size by using the SetWindowPos, but the problem is that I'm using this API while I'm dragging a window which causes the window to change the size for a sec and then go back to the same size, how can I change the window size while I'm dragging it?

3. When a left mouse button is up I want to maximize a window, but when I'm using the ShowWindow API right after the left mose button is up it causes the window to maximize for a sec and then go back I could fix that adding a delay:[code...]

4. Another question, can anyone give me an example on how to put a window right behind other window? (I guess changing something in the Z order?) I already got the two windows handles.

View 5 Replies

[2008] Backgroundworker Progress Bar - Not Displaying Updated Status

Feb 3, 2009

Got a bit of a weird problem with a progress bar. I'm using a backgroundworker, which calls a "Process" function in a different class. The function goes about its business, and sends an update back to the form displaying the progress bar. What I'm finding is that its doing everything right, except update the progress and a label on the form. I've put breakpoints in to check the values of variables being sent to the form, and they're correct. I've also checked the value/maximum of the progress bar during the same break as I step through, and they're being set correctly.

they're just not displaying their updated status. I've tried refresh and application.doevents, to no avail. When the backgroundworker is complete, the values of the progress bar/label are as if I've never touched them! When the worker is complete, the Close button is enabled, so I know its finished. Anybody got any pointers/thoughts on this because I've been battling with this for a day and a half so far. I'm using the same technique as I've used elsewhere in the app to do similar backgroundworker progress updates, but this one refuses to work properly.

View 2 Replies

VS 2008 - Update A Date Field In Table When A Record Is Updated

Jun 26, 2009

I want to update a date field in my table when a record is updated to reflect when the last update was made. I have this for the parameter: objEXTCommand.Parameters.AddWithValue("@entryDate", Now.Date)

However, this inserts the Date and a time of "12:00:00". I want the date and current system time. I've gone about several ways, but none seem to work. I try this: [Code]

View 11 Replies

[2008] Unable To Get All Tables Updated (binding Source And Filters)?

Jan 28, 2009

I had this - in the CURRENTCHANGED event of my BINDING SOURCE.

Private Sub vendorBS_CurrentChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles vendorBS.CurrentChanged
If Me.CMCStarting Then Exit Sub
vendorBAL_C.vendorUpdate()
End Sub

This calls a sub in the class vendorBAL_C that does this

Private Sub SaveData()
_adapter.Update(_vendortable)

[code]....

The vendorUpdate sub calls two .Update's on my SQL Data Adapter.Only the first one is getting saved._vendortable gets saved - changes to _vendorcapabilitiestable does not.Those two DATATABLES are getting created by

_adapter.Fill(_vendorSet)
_vendortable = _vendorSet.Tables(0)
_vendorcapabilitiestable = _vendorSet.Tables(1)

To add just a tad complexity to all this I'm making changes to _vendorcapabilitiestable through a filtered binding source in the UI.

capabiltiesBS.DataSource = vendorBAL_C.capabilitiesTable
.
.
.
Private Sub CapabiltiesTreeView_AfterSelect(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles

[code]....

I tried calling .EndEdit's on my binding source - no change.Changes to the second table are not being saved.

View 7 Replies

VS 2008 View Updated Code Of Dynamically Changed Webpage Without Refreshing?

Mar 10, 2011

In webbrowser, I am visiting a website that lists 10 items per page, I select "20 items per page". The webpage dynamically updates to display a list of 20 items.However when I view the webpage code it still shows 10 items. If I refresh the webbrowser, the code will show 20 items.

View 2 Replies

Concatenating A Variable With A Regex Group Match In Regex.replace?

Apr 5, 2012

I am having an issue where I am using regex.Replace to replace part of a string. The basic idea is that I want to capture the beginning of the string then replace the end of the string with a value from code. For an example pretend I have a string that says "Test Number " followed by number and I want to increment that number. I capture the "Test Number " but when I try to concatenate that capture with the new number it treats the capture ($1) as a literal and replaces the entire string with $1[new number].

[code]...

This will output "We are on Test Number 2", as expected. how I can use a variable in the replacement string portion of the Regex.Replace when including a captured group?

View 1 Replies

Regex: Take Text & Some Special Characters Between The Xml Tags Using Regex On C#.net?

Feb 23, 2012

I want to take the text and some special characters between the xml tags.. My input file contains:

[Code]...

now i want the Regex to take text and the special characters between the tags <line>,<inline>..

View 2 Replies

Increment Regex Match Using Regex.Replace

Jun 21, 2012

I'm creating a program in VB.NET to output multiple images. Some images will have the same file name. If there is multiple files with the same name I want to add "_1_" to the end of the file name. If the "_1_" file already exists I want to increment the 1 to be "_2_". If this file already exists I want to continue incrementing the number ultil it doesn't exist. So for example "filename", filename_1_", "filename_2_", etc. Here is the code that I have tried

[Code]...

View 1 Replies

Regex Builder That Actually BUILDS RegEx From A Highlight

Nov 17, 2011

I've been working straight since yesterday trying to get this to work. I'm a noob to RegEx and I've tested out about 5 different RegEx "builders" but each of them require you to navigate through the options to build the Regex...each of them has failed when I try to use them.Is there an application out there free/paid where you select the line you want to grab and the RegEx is auto generated from that highlight rather than having to try to build the line of code? [code]

View 1 Replies

Syntax/Command Trying To Implement Syntax Highlighting In RichTextBox?

Oct 12, 2011

I am having an issue trying to figure this out. I am writing a script editor that uses tabs (a tab control) and I want to implement syntax highlighting. My issue is that every sample I can find on syntax highlighting uses

Private Sub RichTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved