D
Derek Hart
I have a listbox and a textbox. When I choose the value from the listbox, I
would like to see the value placed in the textbox. When I click a row in the
listbox, the SelectedIndexChanged event fires fine and places the value in
the textbox. The problem is that this event fires when I fill the listbox
with a dataset, and I get an error "Argument prompt cannot be converted to
type string." Even if I use the following code:
If Not lstChooseForms Is Nothing Then
' Do nothing
Else
' Fill the text box with the value.
End If
The above code does not prevent the event from firing. Do I have to get into
storing my own flags to make sure this code not run when the dataset fills
the listbox?
Derek
would like to see the value placed in the textbox. When I click a row in the
listbox, the SelectedIndexChanged event fires fine and places the value in
the textbox. The problem is that this event fires when I fill the listbox
with a dataset, and I get an error "Argument prompt cannot be converted to
type string." Even if I use the following code:
If Not lstChooseForms Is Nothing Then
' Do nothing
Else
' Fill the text box with the value.
End If
The above code does not prevent the event from firing. Do I have to get into
storing my own flags to make sure this code not run when the dataset fills
the listbox?
Derek