Maybe I just missed something.
I'm reading data from a reader.
When I read data into a variable, I check for a value.
If the value is something, I show a form to select another value.
Then a row of data is displayed in a datagridview.
It seems the form flashes by and never allows for user interaction.
------------------------------------------------------------------
-- Form1
If Reader.Hasrows Then
Do While Reader.Hasrows
While Reader.Read
...
x = Reader("Data")
If x = "CheckColor" Then Form2.Show
-- Form2
Here is a simple form that has buttons that set a value on a hidden label on the Form2. The user clicks Button3
Sub Botton_Click3()
Label.Text = "Red"
Me.Hide
End Sub
-- Form1
If Form2.Label.Text = "Red" Then Var1 = "A"
If Form2.Label.Text = "Green" Then Var1 = "B"
If Form2.Label.Text = "Blue" Then Var1 = "C"
...
End While
Reader.NextResult()
Loop
End If
Form2.Close
-----------------------------------------------------------------
The Form2 flashes bye and never allows user interaction.
Does anyone see what I'm missing?
Thanks.
I'm reading data from a reader.
When I read data into a variable, I check for a value.
If the value is something, I show a form to select another value.
Then a row of data is displayed in a datagridview.
It seems the form flashes by and never allows for user interaction.
------------------------------------------------------------------
-- Form1
If Reader.Hasrows Then
Do While Reader.Hasrows
While Reader.Read
...
x = Reader("Data")
If x = "CheckColor" Then Form2.Show
-- Form2
Here is a simple form that has buttons that set a value on a hidden label on the Form2. The user clicks Button3
Sub Botton_Click3()
Label.Text = "Red"
Me.Hide
End Sub
-- Form1
If Form2.Label.Text = "Red" Then Var1 = "A"
If Form2.Label.Text = "Green" Then Var1 = "B"
If Form2.Label.Text = "Blue" Then Var1 = "C"
...
End While
Reader.NextResult()
Loop
End If
Form2.Close
-----------------------------------------------------------------
The Form2 flashes bye and never allows user interaction.
Does anyone see what I'm missing?
Thanks.