| |
|

|
|

|
|
User Controls
|
|
New User
|
|
Login
|
|
Edit/View My Profile
|
|

|
|

|
|

|
|
Active Network
|
|
ActiveMac
|
|
ActiveWin
|
|
ActiveXbox
|
|
DirectX
|
|
Downloads
|
|
FAQs
|
|
Interviews
|
|
MS Games & Hardware
|
|
Reviews
|
|
Rocky Bytes
|
|
Support Center
|
|
TopTechTips
|
|
Windows 2000
|
|
Windows Me
|
|
Windows Server 2003
|
|
Windows Vista
|
|
Windows XP
|
|

|
|

|
|

|
|
News Centers
|
|
Windows/Microsoft
|
|
Apple/Mac
|
|
Xbox/Xbox 360
|
|
News Search
|
|
XML/RSS Newsfeeds
|
|
Pocket PC Site
|
|

|
|

|
|

|
|
FAQ's
|
|
Windows Vista
|
|
Windows 98/98 SE
|
|
Windows 2000
|
|
Windows Me
|
|
Windows Server 2003
|
|
Windows XP
|
|
Windows 7
|
|
Windows 8
|
|
Internet Explorer 6
|
|
Internet Explorer 5
|
|
Xbox 360
|
|
Xbox
|
|
DirectX
|
|
DVD's
|
|

|
|

|
|

|
|
Latest Reviews
|
|
Xbox/Games
|
|
Fable 2
|
|

|
|
Applications
|
|
Windows Server 2008 R2
|
|
Windows 7
|
|
Adobe CS5 Master Collection
|
|

|
|
Hardware
|
|
Microsoft Express Mouse
|
|

|
|

|
|

|
|
Latest Interviews
|
|
Mike Swanson
|
|

|
|

|
|

|
|
Site News/Info
|
|
About This Site
|
|
Advertise
|
|
Affiliates
|
|
Contact Us
|
|
Default Home Page
|
|
Link To Us
|


|
|
 |
|
|
J# rookie: using multiple forms in .NET application
|
|
Forum:
Development
|
|
#1 By
20 (67.9.176.193)
at
Saturday, March 25, 2006 11:20:58 PM
|
|
[QUOTE]Originally Posted by p_metzler:
...(SNIP)...
My issue is that I don't know the code to place in the respective button event handlers that will call and open these other Forms.
Any help would be greatly appreciated.
Thanks a million,
Paul Metzler
[/QUOTE]
First, I would recommend you take some time and either get a book on Windows Forms programming, or read some of the online help, the Framework SDK and other guides. It will save you a LOT of grief.
Second, to answer your specific question, you simply "new" up the form-based cl@ss you want and then do "Show" or "ShowDialog" as your needs demand. You can also set properties on the form in order to "p@ss data" to it (i.e. user state, etc).
For example (in C#, forgive me I'm not very familiar with J#):
AdministratorForm frm = new AdministratorForm();
frm.SomeProperty = "SomeData";
frm.SomeUserState = "Jim Bob";
frm.Show();
----------------------------------------------
[i]Were it not for the brave, there would be no land of the free...[/i]
|
|
|
 |
|