L
lakepeir
Hello,
I'm have defined a combobox on form2 and I'm trying to use that value
in form1. I have defined a global value so that form1 can retrieved
the modified value as:
Public Shared TimerMinutes As ComboBox
In form2, this value is modifed with ComboBox1_SelectedValueChanged()
and ComboBox1_SelectedIndexChanged() methods. Once the value has
changed I set the TimerMinutes to ComboBox1:
TimerMinutes = ComboBox1
After this global value has been modified, I try to retrieve the value
in form2 by
Dim F3 As New frmOptions
Dim temp As Integer
temp = F3.TimerMinutes.Text
The value that in TimerMinutes is always the default value. It never
has the modified value. Any help is appreciated.
I'm have defined a combobox on form2 and I'm trying to use that value
in form1. I have defined a global value so that form1 can retrieved
the modified value as:
Public Shared TimerMinutes As ComboBox
In form2, this value is modifed with ComboBox1_SelectedValueChanged()
and ComboBox1_SelectedIndexChanged() methods. Once the value has
changed I set the TimerMinutes to ComboBox1:
TimerMinutes = ComboBox1
After this global value has been modified, I try to retrieve the value
in form2 by
Dim F3 As New frmOptions
Dim temp As Integer
temp = F3.TimerMinutes.Text
The value that in TimerMinutes is always the default value. It never
has the modified value. Any help is appreciated.