I have 1 masked textbox. I made a custom mask. My custom mask is >AAAA - AAAA - AAAA - AAAA - AAAA
Now my problem is. When the Masked textbox is empty is showes this: ____ - ____ - ____ - ____ - ____
I do not want the underlines and the hyphens showing. I was able to remove the underline by changing the PromptChar to a space. Now my problem is the hyphen. I do not want them showing. But I don't want them gone. I want them to show when the user has typed in 4 characters in each space.
End WhileI am trying to read from the ": " to the end of the line. I keep getting this error: Index and length must refer to a location within the string. Parameter name: length
1)This is my code.. (below)what i am trying to do here is to insert username and confirmed password into a sql table called login via a pre created form.I have 1 textbox, 2 Maskedtextboxes and a button.
what i would like is if the passwords do not match in both maskedtextboxes for the system to throw out a message saying passwords do not match please try again..which then clears previous content and requires the user to enter details again. once details are correct and system commits the new user details to the table and throws up a confirmation message.
I have a field displaying on a datagrid that the user has asked to be variable length based on the data that is returned. Is there an easy way to determine how many characters are returned for a field and then converting that to a pixel length so that I can change the length of the field in the code.
If using the following in an if statement I get an error: If trg.Name.Substring(4, 6).ToUpper <> ("ABCDEF") Then I get the error: "Index and length must refer to a location within the string. Parameter name: length"
I assume this is because the string (trg.name) is too small for the 4, 6 substring. What would be the correct method of working around this problem? VB.net Studio 2008.
Sorry this is a very simple question but i am just too new to this.I can't get the code correctly and don't know what is wrong. If i enter Apple, i keep on getting When the word is written twice, 5 letters are used when it should be saying twice as much.
What could caused the length cannot be less than zero in the following code?
For i = 0 To stPDFText.GetUpperBound(0) If InStr(stPDFText(i), ("Page ")) <> 0 And InStr(stPDFText(i), " of ") = (InStr(stPDFText(i), ("Page ")) + 6) Then If stReportPage(0) = "" Then[code].....
I'm working on software which encrypts/decrypts files. I would like to be able to guess the length of the data after the encryption but I can't use CryptoStream.Length (It throws a NotSupportedException).
I need to write the song length to an access database.I have worked out how to get to an mp3 song length. However, I also need to be able to get to the songlength for the following file extension :.kar, .mid, .kfn.
is have an IF..THEN statment in a VBS script that uses the underscore as a continuation so that the conditions for the IF are on separate lines, for readability. eg:
IF srvname = "A" or _ srvname = "B" or _ etc.
question is: how long can this IF..THEN statement be?
If I dim an array to say, 5 elements, should it not fail if I go to add a 6th? I thought this used to require a redim. In .NET 2.0, I have a character array of length = 3. When I populate it from the db, one record had 4 characters in it and it successfully added all 4 characters to the array?
I have a datagridviee with 8 columns. all the columns are generated programmingly. What i want is that, i want to fix the length as 6 of the 4 cells of the datagridview, remaining 4 will be readonly.
My form length is currently 1040 which when run displays as 870 and I use the vertical scroll bar to access the the boxes not displayed. I need more however, let's just say 1140 in length, but when I type that number into the 'size height' it only goes to 1044. Is there a way for my form to be the length that I need?
I have some songs in the resources of my application and want to get their time length so that I can set a timer to tick when the song ends. And then start the next song. I want to do that in my code, and get the time length of a song as an integer value.
I was trying to grab the string length of readData but when I try msgbox (readData.Length), its giving me a large numeric digit instead. Dim readData as string serverStream.Read(inStream, 0, buffSize) Dim returndata As String = _ System.Text.Encoding.ASCII.GetString(inStream) readData = "" + returndata msg()
When I try this code, Content Length is always -1.
Dim Request As HttpWebRequest = DirectCast(WebRequest.Create("http://www.google.com"), HttpWebRequest) Dim Response As HttpWebResponse = Request.GetResponse()
Is there a way to shrink the length of the prompting box within VB. I just want to obtain 1 value and would rather not have to create anotherform with a single text box and label.
I keep getting the error saying that index and length must refer to a location within the string. I am sure there is just something minor that I am missing but I am having a difficult time figuring it out.