Help from Chat GSLIM Comboboxes

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
 
G

Ginny Caughey [MVP]

Gary,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top