G
Gary Shane Lim
I have a combobox that I have set to make some calculations as soon as the
item has been selected. However when I check the selectedindex value I get
an error. ""An unhandled exception of type 'System.MissingMethodException'
occurred in PDA.exe" " This only happens if I am trying to get the
selectedindex. Does anybody have an idea of what I am doing wrong?
Thanks
gslim
CODE
Private Sub cboA_0_SelectedIndexChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles cboA_0.SelectedIndexChanged
If Me.cboA_0.SelectedIndex > 0 Then
Me.txtA_0.Text = (Me.cboA_0.SelectedIndex - 1) * 0.5
Else
Me.txtA_0.Text = ""
End If
End Sub
item has been selected. However when I check the selectedindex value I get
an error. ""An unhandled exception of type 'System.MissingMethodException'
occurred in PDA.exe" " This only happens if I am trying to get the
selectedindex. Does anybody have an idea of what I am doing wrong?
Thanks
gslim
CODE
Private Sub cboA_0_SelectedIndexChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles cboA_0.SelectedIndexChanged
If Me.cboA_0.SelectedIndex > 0 Then
Me.txtA_0.Text = (Me.cboA_0.SelectedIndex - 1) * 0.5
Else
Me.txtA_0.Text = ""
End If
End Sub