Help from Chat GSLIM Comboboxes

  • Thread starter Thread starter Gary Shane Lim
  • Start date Start date
G

Gary Shane Lim

Here is my Problem and my code from the chat earlier.

Gary
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" " Does anybody have an idea of what I am doing wrong?
This only errors when I debug. When I step through it works fine.

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
 
Gary,

VB isn't my strong suit but the code looks simple enough. Do you have any
databinding going on?
 
Back
Top