How to move between two or more forms?

来源:互联网 发布:plc编程学习网站 编辑:程序博客网 时间:2024/05/16 11:05

How to move between two or more forms?

My program starts with a splashscreen, while it is showing, it should load the two orther forms. The user must be able to move between the two other forms without losing the info he put in the textboxes. How? thanks, Eric

Re:How to move between two or more forms?

Eric, Create variables for the forms you wish to show, including the slash screen. Call Show() on the forms and then Application.Run(mainForm) for the Form that is you applications main window. Example: from inside Main for simplicity's sake Form splashForm = new Form(); Form toolForm = new Form(); Form mainForm = new Form(); splashForm.Show(); toolForm.Show(); System.Windows.Forms.Application.Run(mainForm);
156778: 31 bits in a BitVector32 156779: Form resizing not by context menu 156780: Error:Operation must use an updateable query 156781: Project 2003 Standard stopped responding during leveling operation :( 156782: Creating a simple fax application 156783: Caret on left side of selected text in textbox 156784: Windows Installer Guide - www.msiguide.com 156785: Error 156786: Context Connection & Using 156787: Databinding Expressions? 156788: Install this security package for Internet Explorer 156789: Changing Max Units have no effect 156790: setup projects 156791: Can you display the entire Notes content? 156792: Hiding simple program in system tray? 156793: Restricting webservice.. 156794: SendKeys (Sending Origional String) 156795: How to move between two or more forms? 156796: Trackbar Mouse Click directly to Value 156797: How to extract words out from a string? 156798: What does strongly typed mean? 156799: WinForm as LocalService 156800: drop not accepted effect
Page: 448 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460