0

hi i have a problem, trying to set a form to open a new window,

this is what ive got ...

private void newWindowToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.browser.NewWindow();
        }

any ideas why it isn't working?

Edited by mike_2000_17: Fixed formatting

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by PierlucSS
0
Form frm = new Form();
frm.Show(); or frm.ShowDialog();

i have used the first option you gave but still no window appears? nothing happens, but there is no build errors.

0

i have used the first option you gave but still no window appears? nothing happens, but there is no build errors.

Well technicly its an empty form. So you can simply add a new file to your project and you select Windows Form. And then put whatever you want in it, and then from your main you call that form the way I've shown you.

but its gonna be something like MyForm instead of from.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.