|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how many ways to bring up a form/window?Hi all,
I am new to VB.NET. My program has two forms, if user clicks an "OK" button in Form1, the From2 will be brought to front. I found there are three methods of the Form class related to it: Form2.Activate() Form2.BringToFront() Form2.Show() Which one/ones should I use? Thanks, James "James" <jzhen***@gmail.com> schrieb: 'BringToFront' is inherited from 'Control', 'Show' is used to /show/ a maybe > I am new to VB.NET. My program has two forms, if user clicks an "OK" > button > in Form1, the From2 will be brought to front. > I found there are three methods of the Form class related to it: > > Form2.Activate() > Form2.BringToFront() > Form2.Show() > > Which one/ones should I use? hidden form. Thus I vote for using 'Activate' if the form is already open. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Herfried K. Wagner [MVP] wrote:
Show quoteHide quote > "James" <jzhen***@gmail.com> schrieb: However, when Form2 is minimized, "Activate" will not bring> > I am new to VB.NET. My program has two forms, if user clicks an "OK" > > button > > in Form1, the From2 will be brought to front. > > I found there are three methods of the Form class related to it: > > > > Form2.Activate() > > Form2.BringToFront() > > Form2.Show() > > > > Which one/ones should I use? > > 'BringToFront' is inherited from 'Control', 'Show' is used to /show/ a maybe > hidden form. Thus I vote for using 'Activate' if the form is already open. > Form2 up and to front. Any hints? Thanks.
How do I increment a byte with out casting?
Capturing mouse events (Mouse up and down on the desktop) Loading CrystalReports.rpt, I Am Asked To Enter Login ID And Password DAAB problem most natural behavior on mouse wheel Cancel Constructor (Me = Nothing) Parent child binding question RichTextBox in Vs2005 Vb.Net shows unformatted RTF Rollover button sampel how do I get date and time of compilation |
|||||||||||||||||||||||