P
PocketDeveloper
This is so puzzling...maybe someone here with has a suggestion to help
me.
It started when I added an If statment (CurrentTab <> "A" ) to this
code in a MouseDown event (Note: the image bitmap assignment was
working *FINE* until I added the IF code around it):
Private Sub pictTabA_MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles pictTabA.MouseDown
If CurrentTab <> "A" Then
Dim img = New Bitmap(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("MYApp.A
Tab Down.jpg"))
pictTabA.Image = img
End If
End Sub
Once I added the check on the CurrentTab variable, I started getting:
'An unhandled exception of type 'System.MissingMethodException'
occurred in System.Windows.Forms.dll"
The CurrentTab variable is a private Form-level variable declared in
the same form as the picture control whose MouseDown I am checking
here.
Any thoughts? I have spent HOURS on this simple code. I am so
frustrated.
Thanks for your help and suggestions!
me.
It started when I added an If statment (CurrentTab <> "A" ) to this
code in a MouseDown event (Note: the image bitmap assignment was
working *FINE* until I added the IF code around it):
Private Sub pictTabA_MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles pictTabA.MouseDown
If CurrentTab <> "A" Then
Dim img = New Bitmap(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("MYApp.A
Tab Down.jpg"))
pictTabA.Image = img
End If
End Sub
Once I added the check on the CurrentTab variable, I started getting:
'An unhandled exception of type 'System.MissingMethodException'
occurred in System.Windows.Forms.dll"
The CurrentTab variable is a private Form-level variable declared in
the same form as the picture control whose MouseDown I am checking
here.
Any thoughts? I have spent HOURS on this simple code. I am so
frustrated.
Thanks for your help and suggestions!