Getting a form to load on click

  • Thread starter Thread starter Alan
  • Start date Start date
A

Alan

My question may be trivial, but I was wondering if
someone could tell me how to get a form I have created to
load. Say I had a program and a button on there for a
Help file to open. Well how do I get it to load the form
when I click the button. I tried Load frmHelp but it tell
me thatfrmHelp is a type and can't be used as an
expression.

And another thing, what does Sub Main not found in
Name.Form1 mean?

Any help would be appreciated. Thanks

Alan
 
frmHelp frm = new frmHelp
frm.Show()

or

Form frm = new frmHelp
frm.Show()

Is this what you're looking for?

As for the second question, it looks like you've coded something
incorrectly. Don't have enough information to give you an answer.

Karen
 
Back
Top