The Active Network
ActiveWin Anonymous | Create a User | Reviews | News | Forums | Advertise | VBA in Excel | Users Online: 0  
 

neowin.net

Amazon.com

  *  

J# rookie: using multiple forms in .NET application
Forum: Development
Read Only Forum
Back to Development
All Forums
  Displaying Posts 1 through 1 of 1
  This is an archived static copy of ActiveWin.com.
#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]



 

  *  
  *   *
 
replica watches