R
Rod Gill
Hi,
I'm learning VB.Net (VS 2003) and have built what I think is a simple
application. It consists of a base form and a Main menu form that inherits
from it. The menu form has three buttons added, each one of which when
clicked should display a message stating the name of the button. Like I
said, easy, eh?
Problem: I build, the menu form displays and I click one of the three
buttons added to the Menu Form. I get a beep then nothing. As soon as I
press the Alt key, the expected message appears!@##!
The code for the button is trivial (Enterprise of course is the name of the
button):
Private Sub Enterprise_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Enterprise.Click
System.Windows.Forms.MessageBox.Show("Enterprise Form")
End Sub
Any idea why Alt needs pressing to get the message to display? I have looked
thru all the system generated code and cannot see any reason for this,
however my background from way back is assembler programming and for the
last 10 years part-time VBA coding so I'm sure I'm missing something simple.
Failing that is there an easy way to import existing forms into a new
Project?
Many Thanks,
I'm learning VB.Net (VS 2003) and have built what I think is a simple
application. It consists of a base form and a Main menu form that inherits
from it. The menu form has three buttons added, each one of which when
clicked should display a message stating the name of the button. Like I
said, easy, eh?
Problem: I build, the menu form displays and I click one of the three
buttons added to the Menu Form. I get a beep then nothing. As soon as I
press the Alt key, the expected message appears!@##!
The code for the button is trivial (Enterprise of course is the name of the
button):
Private Sub Enterprise_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Enterprise.Click
System.Windows.Forms.MessageBox.Show("Enterprise Form")
End Sub
Any idea why Alt needs pressing to get the message to display? I have looked
thru all the system generated code and cannot see any reason for this,
however my background from way back is assembler programming and for the
last 10 years part-time VBA coding so I'm sure I'm missing something simple.
Failing that is there an easy way to import existing forms into a new
Project?
Many Thanks,