Wrox Home  
Search P2P Archive for: Go

  Return to Index  

dotnet_windows_app_design thread: where to add code to automatically call a login window during pro gram startup


Message #1 by Jack.Hobaugh@L... on Thu, 1 Aug 2002 11:51:00 -0600
Jack, 

Try this code

	static void Main() 
	{
		Application.Run(new LoginDialogBox());
	}

Jeff

-----Original Message-----
From: Jack.Hobaugh@L... [mailto:Jack.Hobaugh@L...]
Sent: Thursday, August 01, 2002 1:51 PM
To: Application Design for Windows Desktops
Subject: [dotnet_windows_app_design] where to add code to automatically
call a login window during pro gram startup



static void Main() 
		{
			Form LoginDialogBox = new Form();
			LoginDialogBox.ShowDialog();
			Application.Run(new Form1());
		}

Dear List members,

i am trying to have a modal window come up as the first window.  with the
code as i have it, i am getting a window, but not the one that i have built.
i am just getting a generic window that is not a modal window.

is there someplace else i should be placing this code?  or is there a
different call i should be using?

thanks,

jack




The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 


  Return to Index