Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have the following problem :

I have 2 Forms : 1. login.cs and 2. mainForm.cs

 

mainForm.cs is my main app and login.cs should block access to mainForm.cs. I use a SQL db on login.cs to authenticate. What I would like to know is how I would temporarily disable mainForm.cs while the user is logging in with login.cs

 

Any help would be greatly appreciated

Posted

I do the same thing at work.

 

The way I did it was do to as PlausiblyDamp suggests, I set the Login form as the 1st one loaded and after they have logged in hide the login form and do a showdialog for the main menu, when that one closes the login form then closes.

 


this.Hide();
MainMenu LoadMenu = new MainMenu();
LoadMenu.ShowDialog();
this.Close();
[/Code]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...