show method question

daveofgv

Well-known member
Joined
Sep 17, 2008
Messages
218
Location
Dallas, TX
Programming Experience
1-3
Hello all,

If I have a button on a form and someone clicks it my next form appears....
How can I make it where the form (webbrowser) appears no matter how many times someone clicks the button?

Example: if a user wants 5 webbrowsers open then can so. My browser uses tabcontrol so they can open as many tabs as they want, but I sometimes want more then one browser open.

any suggestions?

Thanks

daveofgv
 
Please rephrase that...
You want to:
[ ] Have a button which opens on each Click-Event another Form
[ ] Have a button which opens on each Click-Event the default webbrowser
[ ] Have a button which opens only one time another Form
[ ] Have a button which opens only one time the default webbrowser

Bobby
 
Thanks for the reply.

when I have a form with a button on it and it says:

form2.show()

and the user clicks it form2 opens, but I can't click it again and have form2 open again. I would like to have as many form2's open at one time.

It will be a webbrowser, however, it's a webbrowser that I made and it's not the default.

Thanks

daveofgv
 
Hello again,

I figured it out.....

I have been using internetbrowser.show()

However, it works when I use:

VB.NET:
        Dim internetfrm As internetbrowser

        internetfrm = New internetbrowser

        internetfrm.Show()

should I always use the dim factor before opening forms?

Thanks for you help

daveofgv
 
Back
Top