Hi,
I have a listbox which is populated with values from DataSet:
OdbcDataAdapter1.Fill(ds)
ListBox2.DataSource = ds.Tables(0)
ListBox2.DisplayMember = "Store"
It displays fine in the form, but when I tried to execute this code:
TextBox1.Text = ListBox1.SelectedItem
VB produces this error :
An unhandled exception of type 'System.ArgumentException' occurred in microsoft.visualbasic.dll
Additional information: Argument 'Prompt' cannot be converted to type 'String'.
Please help.. thanx in advance
vito
I have a listbox which is populated with values from DataSet:
OdbcDataAdapter1.Fill(ds)
ListBox2.DataSource = ds.Tables(0)
ListBox2.DisplayMember = "Store"
It displays fine in the form, but when I tried to execute this code:
TextBox1.Text = ListBox1.SelectedItem
VB produces this error :
An unhandled exception of type 'System.ArgumentException' occurred in microsoft.visualbasic.dll
Additional information: Argument 'Prompt' cannot be converted to type 'String'.
Please help.. thanx in advance
vito