D
David Cuffee
I am a VB6 programmer learning C#. I probably would have been better off
being totally new to programming learning C# because of my knowledge of VB6
is totally making this harder for me to grasp.
What I am trying to do is I have a form (lets call it Form1) with a button
called Browse. When the Browse button is clicked it creates in instance of a
new window which has a ListBox on it (lets call it Form2). The ListBox is
loaded with the names of some tables in a databases. What i am trying to do
is once the user selects one of the tables and then clicks the OK button on
the window with the ListBox. Form2 would disappear. Then back on form1 there
is another button called AddColumns. When the add columns button is clicked
I want to do a query on the table that was selected from the Listbox on
form2. The problem is in C# I dont think there is a way to save the data
retrived from the Listbox on form2 and have the AddColumns click event to be
able to see that info anyway. There has to be a way to do this. In VB6 this
would be trival but with the way encapsulation is in C# I have not figured
out how to do it yet. HELP!
David
being totally new to programming learning C# because of my knowledge of VB6
is totally making this harder for me to grasp.
What I am trying to do is I have a form (lets call it Form1) with a button
called Browse. When the Browse button is clicked it creates in instance of a
new window which has a ListBox on it (lets call it Form2). The ListBox is
loaded with the names of some tables in a databases. What i am trying to do
is once the user selects one of the tables and then clicks the OK button on
the window with the ListBox. Form2 would disappear. Then back on form1 there
is another button called AddColumns. When the add columns button is clicked
I want to do a query on the table that was selected from the Listbox on
form2. The problem is in C# I dont think there is a way to save the data
retrived from the Listbox on form2 and have the AddColumns click event to be
able to see that info anyway. There has to be a way to do this. In VB6 this
would be trival but with the way encapsulation is in C# I have not figured
out how to do it yet. HELP!
David