Trouble With comboboxes

  • Thread starter Thread starter Gary Shane Lim
  • Start date Start date
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
 
Hi Gary,

Are you using v1.0 or later bits? Has the framework been properly
installed? This seems weird.

-Katie

--------------------
| From: "Gary Shane Lim" <[email protected]>
| Subject: Trouble With comboboxes
| Date: Mon, 21 Jul 2003 11:45:21 -0600
| Lines: 27
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 206.207.111.135
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:28709
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| 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
|
|
|

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top