Click here to Skip to main content
15,893,814 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to find the word present in the document Pin
Not Active10-Aug-06 3:26
mentorNot Active10-Aug-06 3:26 
GeneralRe: how to find the word present in the document Pin
ayyp10-Aug-06 19:07
ayyp10-Aug-06 19:07 
GeneralRe: how to find the word present in the document Pin
Khalid Sabtan3-Jul-12 12:15
Khalid Sabtan3-Jul-12 12:15 
Questiongracefull exit Pin
Glen Harvy10-Aug-06 1:59
Glen Harvy10-Aug-06 1:59 
AnswerRe: gracefull exit Pin
Not Active10-Aug-06 2:52
mentorNot Active10-Aug-06 2:52 
AnswerRe: gracefull exit Pin
Stefan Troschuetz10-Aug-06 2:54
Stefan Troschuetz10-Aug-06 2:54 
GeneralRe: gracefull exit Pin
Glen Harvy10-Aug-06 12:30
Glen Harvy10-Aug-06 12:30 
GeneralRe: gracefull exit Pin
Stefan Troschuetz10-Aug-06 22:16
Stefan Troschuetz10-Aug-06 22:16 
Glen Harvy wrote:
I think the Application.Exit() is being called at the wrong place


Think so to, but unfortunately your post doesn't at which point of the creation process of your MainForm you do the startupcheck. Try putting it into an event handler of the Load event. I think inside the constructor Application.Exit has no effect or crashes the application respectively, as the call to Application.Run hasn't finished or more precisely wasn't yet made. Alternatively you could also make the startup check inside Program.cs:
static void Main()
{
  if (!startupCheck())
    return;

  Application.EnableVisualStyles();
  Application.SetCompatibleTextRenderingDefault(false);
  Application.Run(new MainForm());
}



"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

AnswerRe: gracefull exit Pin
Ennis Ray Lynch, Jr.10-Aug-06 4:15
Ennis Ray Lynch, Jr.10-Aug-06 4:15 
GeneralRe: gracefull exit Pin
Glen Harvy10-Aug-06 12:36
Glen Harvy10-Aug-06 12:36 
AnswerRe: gracefull exit Pin
likefood10-Aug-06 9:41
likefood10-Aug-06 9:41 
QuestionSOAP Attachments - c# and java Pin
teluksridhar10-Aug-06 1:18
teluksridhar10-Aug-06 1:18 
QuestionDebugging SP with Sql server 2005. Pin
Ankit_748110-Aug-06 1:12
Ankit_748110-Aug-06 1:12 
QuestionExternal function Pin
thepersonof10-Aug-06 1:06
thepersonof10-Aug-06 1:06 
AnswerRe: External function Pin
Andrei Ungureanu10-Aug-06 2:49
Andrei Ungureanu10-Aug-06 2:49 
GeneralRe: External function Pin
thepersonof10-Aug-06 10:13
thepersonof10-Aug-06 10:13 
QuestionCrystalReportViewer is slow Pin
atuldeore10-Aug-06 0:19
atuldeore10-Aug-06 0:19 
Questionwhat is the formula.... Pin
diddy3410-Aug-06 0:09
diddy3410-Aug-06 0:09 
AnswerRe: what is the formula.... Pin
Guffa10-Aug-06 2:53
Guffa10-Aug-06 2:53 
QuestionChanging display area in ListView Pin
Flow849-Aug-06 23:57
Flow849-Aug-06 23:57 
AnswerRe: Changing display area in ListView Pin
VSush10-Aug-06 0:40
VSush10-Aug-06 0:40 
GeneralRe: Changing display area in ListView Pin
Flow8410-Aug-06 0:59
Flow8410-Aug-06 0:59 
GeneralRe: Changing display area in ListView Pin
Flow8414-Aug-06 11:48
Flow8414-Aug-06 11:48 
AnswerRe: Changing display area in ListView Pin
Flow8416-Aug-06 10:21
Flow8416-Aug-06 10:21 
QuestionMessage Box start position Pin
AnnnS9-Aug-06 23:38
AnnnS9-Aug-06 23:38 

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.