M
Materialised
Hi All,
I have a strange issue, and I am not sure if it is a error on my part, or a
visual studio bug.
I am using VS.Net 2003 Enterprise.
I have 2 event handlers as follows:
Public Shared Sub txtFace1_DoubleClick(ByVal sender As Object, ByVal e
As System.EventArgs) Handles txtFace1.DoubleClick
Dim SWin As New search
Caller = "Face1"
SWin.ShowDialog(Me)
End Sub
Private Sub txtFace2_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtFace2.DoubleClick
Dim SWin As New search
Caller = "Face2"
SWin.ShowDialog(Me)
End Sub
However the first event handler gives me the following error:
C:\Documents and Settings\xxx\My Documents\Visual Studio Projects\Ware House
Control System\Forms\Form5.vb(884): 'Me' is valid only within an instance
method.
Yet the second event handler is fine and generates no warnings.
Does anyone know what this issue is?
Thanks
I have a strange issue, and I am not sure if it is a error on my part, or a
visual studio bug.
I am using VS.Net 2003 Enterprise.
I have 2 event handlers as follows:
Public Shared Sub txtFace1_DoubleClick(ByVal sender As Object, ByVal e
As System.EventArgs) Handles txtFace1.DoubleClick
Dim SWin As New search
Caller = "Face1"
SWin.ShowDialog(Me)
End Sub
Private Sub txtFace2_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtFace2.DoubleClick
Dim SWin As New search
Caller = "Face2"
SWin.ShowDialog(Me)
End Sub
However the first event handler gives me the following error:
C:\Documents and Settings\xxx\My Documents\Visual Studio Projects\Ware House
Control System\Forms\Form5.vb(884): 'Me' is valid only within an instance
method.
Yet the second event handler is fine and generates no warnings.
Does anyone know what this issue is?
Thanks