G
Guest
While I was playing with VB.NET windows application I came across one
particular error.
Purposefully I made a button array and try to add an event handler like a
normal button.
Please find the code below.
------------------------------------------------------
Public Sub Start()
Dim But2(2) As Button
But2(1) = New Button
But2(0) = New Button
But2(1).Text = "Age"
But2(0).Text = "Man"
AddHandler But2.Click, AddressOf clickNewbutton
End Sub
Private Sub clickNewbutton(ByVal sender As Object, ByVal evArgs As
EventArgs)
MessageBox.Show("Hello from the new Button" & sender.ToString)
End Su
-----------------------------------------------------------------------------------
During compilation instead of prompting an user error message IDE crashed
with following error
"Visual Basic .Net compiler is unable to recover from the following error:
System Error &Hc0000005& (Visual Basic internal compiler error)
Save your work and restart Visual Studio .Net"
What is the reason for this compiler error?
JACOB P. JOJAN (MCP)
Satyam Computer Services Ltd.
particular error.
Purposefully I made a button array and try to add an event handler like a
normal button.
Please find the code below.
------------------------------------------------------
Public Sub Start()
Dim But2(2) As Button
But2(1) = New Button
But2(0) = New Button
But2(1).Text = "Age"
But2(0).Text = "Man"
AddHandler But2.Click, AddressOf clickNewbutton
End Sub
Private Sub clickNewbutton(ByVal sender As Object, ByVal evArgs As
EventArgs)
MessageBox.Show("Hello from the new Button" & sender.ToString)
End Su
-----------------------------------------------------------------------------------
During compilation instead of prompting an user error message IDE crashed
with following error
"Visual Basic .Net compiler is unable to recover from the following error:
System Error &Hc0000005& (Visual Basic internal compiler error)
Save your work and restart Visual Studio .Net"
What is the reason for this compiler error?
JACOB P. JOJAN (MCP)
Satyam Computer Services Ltd.