blah blah blah is here! blah blah » Close

up0down
link

Hy
im making a little paint program.. I have a toolstrip menu and the last butten is INFO. When people click on INFO a little new window should popup with information about the prg version, the author etc... I can't figure out how to program that button to open a new window....

I hope someone can help me beceause i cant seem to find the code anywhere....

thx in advance!!

gsvirdi
412

As vulpes told.... U have to first create a new form let's say Form2, use picture(logo) in it to make it look attractive. Then use that code in the click event of the INFO button/item. PS: Vote/Select the helpful answers on right time to express ur thanks.

last answered one year ago

1 answers

up1down
link

I'm assuming you've already designed your pop-up form, Form2 say, and added it to the project.

I'm also assuming that you've added a Click eventhandler for the INFO button from the VS designer.

The code to open the pop-up form modally (i.e. the user has to close it before he/she can move focus back to the original form) would then be:

private void INFO_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.ShowDialog();
}

gsvirdi
412

Voted as helpful :)

Feedback