Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2005

Tip: Looking for answers? Try searching our database.

displaying config dialog after main form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sam Carleton - 15 Sep 2005 17:59 GMT
For the first run of my application, the configuration dialog
needs to be displayed.  I have tried loading the config dialog
in the form load, but the form is not loaded yet.  What is the
easiest way to display the config dialog?

Sam
Uchiha Jax - 15 Sep 2005 19:45 GMT
Something like this?

static void Main()
{

MyFormDialog dialog = new MyFormDialog(); /// inherits from form.
Application.Run(dialog); /// this line will exit when the dialog is closed

Form1 f1 = new Form1();
//// do stuff with dialog settings - im just making this up......
f1.InitializeFromDialogSettings(dialog);
Application.Run(f1);

}

> For the first run of my application, the configuration dialog
> needs to be displayed.  I have tried loading the config dialog
> in the form load, but the form is not loaded yet.  What is the
> easiest way to display the config dialog?
>
> Sam
Uchiha Jax - 15 Sep 2005 20:22 GMT
Sorry I read that incorrectly. You want the dialog afterwards, not before.

Call:

this.Show();

in the Load event before you show the dialog. Show is only called after load
as default.

> Something like this?
>
[quoted text clipped - 17 lines]
> >
> > Sam

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.