Click here to Skip to main content
16,004,836 members
Home / Discussions / C#
   

C#

 
QuestionHow to use HTMLBROWSER to display the body of an email Pin
kev.net27-Mar-07 22:45
kev.net27-Mar-07 22:45 
AnswerRe: How to use HTMLBROWSER to display the body of an email Pin
mark_w_27-Mar-07 23:00
mark_w_27-Mar-07 23:00 
QuestionRemoting Thread Queue Pin
Alper Camel27-Mar-07 22:29
Alper Camel27-Mar-07 22:29 
AnswerRe: Remoting Thread Queue Pin
joon vh.28-Mar-07 3:54
joon vh.28-Mar-07 3:54 
Questionstyle for all application form C#.Net2005 Pin
Rasoul Heidari27-Mar-07 22:16
Rasoul Heidari27-Mar-07 22:16 
QuestionAbout MDI applications Pin
Raheem MA27-Mar-07 22:15
Raheem MA27-Mar-07 22:15 
AnswerRe: About MDI applications Pin
Muammar©27-Mar-07 22:48
Muammar©27-Mar-07 22:48 
AnswerRe: About MDI applications Pin
Pete O'Hanlon27-Mar-07 23:09
mvePete O'Hanlon27-Mar-07 23:09 

  1. Don't post the same question more than once especially less than an hour after posting the original question. People on these boards give their time freely and don't get paid for their help. Just because something is urgent for you, doesn't mean that somebody else is going to give it their fullest attention until they are ready. Multiple postings makes it less (rather than more) likely that you will get help.
  2. Try to make the subject more meaningful in describing the problem.
  3. Don't use text speak. This is annoying. You have a keyboard with far more keys than a mobile has, so use it. You're not a surfer boy so ending something in a Z is just asking for trouble.
  4. Don't use capitals to try to get our attention.

Now, to answer your question - you are calling the login page at the wrong place. If you want the login form to determine whether or not the main form is actually called or not, you should call it before you even attempt to create the main form. If you look at your main method (static void Main(...)), you will see an line that says something like Application.Run(new MainForm());. You need to call your login form before this, and only call this line if the login is successful. Example:
using (LoginForm dlg = new LoginForm())
{
  if (dlg.ShowDialog() == DialogResult.OK) // The user has been authenticated
    Application.Run(new MainForm());
}


Deja View - the feeling that you've seen this post before.

AnswerRe: About MDI applications Pin
jack_claudine27-Mar-07 23:39
jack_claudine27-Mar-07 23:39 
QuestionFlash style for C#.net 2005 Pin
Rasoul Heidari27-Mar-07 22:12
Rasoul Heidari27-Mar-07 22:12 
QuestionDon't open files when loading a project Pin
WillemM27-Mar-07 22:01
WillemM27-Mar-07 22:01 
AnswerRe: Don't open files when loading a project Pin
jack_claudine27-Mar-07 23:44
jack_claudine27-Mar-07 23:44 
QuestionVoice over modem - HOWTO Pin
logicon27-Mar-07 21:58
logicon27-Mar-07 21:58 
QuestionXML writing problem Pin
JacquesDP27-Mar-07 21:53
JacquesDP27-Mar-07 21:53 
AnswerRe: XML writing problem Pin
darkcalin27-Mar-07 22:14
darkcalin27-Mar-07 22:14 
GeneralRe: XML writing problem Pin
JacquesDP27-Mar-07 22:22
JacquesDP27-Mar-07 22:22 
GeneralRe: XML writing problem Pin
JacquesDP27-Mar-07 22:35
JacquesDP27-Mar-07 22:35 
GeneralRe: XML writing problem Pin
darkcalin27-Mar-07 22:41
darkcalin27-Mar-07 22:41 
GeneralRe: XML writing problem Pin
JacquesDP27-Mar-07 22:55
JacquesDP27-Mar-07 22:55 
QuestionWebbrowser.DocumentStream Pin
Piovra_27-Mar-07 21:42
Piovra_27-Mar-07 21:42 
AnswerRe: Webbrowser.DocumentStream Pin
Wallydog14-Sep-10 11:52
Wallydog14-Sep-10 11:52 
QuestionBest practises to work with database Pin
JacquesDP27-Mar-07 21:31
JacquesDP27-Mar-07 21:31 
QuestionMDI application Pin
Raheem MA27-Mar-07 21:28
Raheem MA27-Mar-07 21:28 
AnswerRe: MDI application Pin
jack_claudine27-Mar-07 23:35
jack_claudine27-Mar-07 23:35 
QuestionHow to handle a event in Windows Application Pin
pashitech27-Mar-07 21:07
pashitech27-Mar-07 21:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.