|
I have the following line of code but it says that String input is not in proper format. What is wrong in following piece of code
Dim addCount As String
addCount = Me.txtItemNumber.Text + "." + (count + 1)
|
|
|
|
|
Nothing. The code you posted cannot possible throw that exception.
Your probably talking about a line of code that mentions "Parse" somewhere in it.
|
|
|
|
|
|
Yeah, there is that, but nothing in the code snippet posted would generate the error.
|
|
|
|
|
compiler errors (as well as run-time exceptions) provide accurate information about class names, file names, and line numbers for all the problems they want to refer to. And any decent IDE can show source code including line numbers; it is unfortunate Visual Studio has that feature off by default.
Hence: turn on the "show line numbers" option, and then look at the exact line where the problem occurs.
BTW: always log exceptions in their full length, i.e. use their multi-line ToString() result, not their Message property.
|
|
|
|
|
1
modified 28-Nov-12 4:06am.
|
|
|
|
|
how is each sub level defined in the file?
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
|
Make a list where you add a text when you enter a new sublevel. Then iterate until you reach a new level, removing everything in the list.
Where are you stuck?
Bastard Programmer from Hell
|
|
|
|
|
I tried this code to open Google site from Vb.net and display the data in Textbox on the form to textBox on the Google, but didn't success with, by displya the data only the code open the Google.
By the way I using the dll file "SHDocVw"
notice:"description" is the name of TeXtBox in google
Imports SHDocVw
<pre lang="vb"> Dim objIE As SHDocVw.InternetExplorer
objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate("http://Google.com")
objIE.Visible = True
objIE.Document("description").ToString = TextBox1.Text
|
|
|
|
|
Example:
1 st combo box item
2 nd combo box item
3 code no is text box
4 th in combo box item
then above 4 field to generate the auto sr.no. what can code in vb6..
plz help me...
|
|
|
|
|
anghan22 wrote: then above 4 field to generate the auto sr.no.
I have no idea what this is supposed to mean, but you may like to look here[^] for some help.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Example:
1 st combo box is select= LSO then
2 nd combo box is select=Ls1
what are the code...?
plz help me
|
|
|
|
|
sometimes people don't know hoq to ask for what they want.
Encourage them by asking specific questions.
|
|
|
|
|
I don't think this is the forum for your comment; you probably meant to post it here[^], where it would make sense.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
That sadly is what has been tried and tried again. People here will try to get the information out of person asking the question. BUT not everybody has the time to do this on a daily basis
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Cameron Atkinson wrote: Encourage them by asking specific questions
I'll stick to answering questions that I think are worth answering. We're volunteers.
Bastard Programmer from Hell
|
|
|
|
|
We've been doing that time and time again. FAR, FAR more often than not, you never get a response back from the OP.
|
|
|
|
|
ok all. I'll think about it
|
|
|
|
|
I am posting to a rich text box from a visual basic program. I want the text to be immediately visible, but sometimes it is delayed. I am using the following two sets of code with similar results (not always instant). How can I make it instant?
Public Sub postMessageBox(ByVal aMessage As String, ByRef aTextBox As RichTextBox)
aTextBox.Text &= aMessage
aTextBox.Text &= Chr(13)
aTextBox.SelectionStart = Len(aTextBox.Text)
aTextBox.SelectionLength = 0
aTextBox.SelectionStart = aTextBox.Text.Length
aTextBox.ScrollToCaret()
End Sub
Public Sub postMessageBoxSimple(ByVal amessage As String, ByRef atextbox As RichTextBox)
atextbox.SelectedText = amessage & Chr(13)
End Sub
|
|
|
|
|
Manipulating a (rich)textbox takes time. How about a ListBox [^] and drawing the items by hand?
Bastard Programmer from Hell
|
|
|
|
|
Thanks for the help. I really appreciate it.
|
|
|
|
|
You're welcome
|
|
|
|
|
First, you're setting SelectionStart twice. You only need it once.
Second, every time you add a string to the end of the Text property, you're making a copy of the original content and then adding the new text to it, thereby creating two copies of your string. The long your log gets (I assume that's what you're doing) to longer each item added will take to show up.
Also, ScrollToCaret will also present some problems because it only works if the RTB has the input focus and that isn't always possible depending on the system you're writing.
Use a ListBox instead.
|
|
|
|
|
Thanks for the help. I really appreciate it.
|
|
|
|