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

C#

 
Questionhow to create window Pin
pakFari24-Oct-05 8:39
pakFari24-Oct-05 8:39 
AnswerRe: how to create window Pin
Daniel Grunwald24-Oct-05 8:47
Daniel Grunwald24-Oct-05 8:47 
QuestionRe: how to create window Pin
Anonymous24-Oct-05 9:12
Anonymous24-Oct-05 9:12 
AnswerRe: how to create window Pin
pakFari24-Oct-05 19:05
pakFari24-Oct-05 19:05 
GeneralRe: how to create window Pin
pakFari25-Oct-05 8:22
pakFari25-Oct-05 8:22 
QuestionRegex token type question Pin
jeweladdict24-Oct-05 8:39
jeweladdict24-Oct-05 8:39 
AnswerRe: Regex token type question Pin
Christian Graus24-Oct-05 13:41
protectorChristian Graus24-Oct-05 13:41 
QuestionClosing Application Properly Pin
Dwayner7924-Oct-05 8:35
Dwayner7924-Oct-05 8:35 
I am having trouble closing my application properly. I have a MDI environment. Each child can have a usercontrol loaded.

I have in my Parent the following. All is psudo-code.

ExitApp()<br />
{<br />
 if(childForm != null)<br />
 {<br />
  childForm.ExitFunction();<br />
 }<br />
 else<br />
 {<br />
  App.Close();<br />
 }<br />
}


in Childform,

ExitFunction()<br />
{<br />
 if(userControl != null)<br />
 {<br />
  userControl.ExitFunction();<br />
 }<br />
 else<br />
 {<br />
  //This is the issue???  See below <br />
 }<br />
}


A similar function in the userControl.

I had called a event handler that relaunched the ExitApp function. But obviously, the childform is not unloaded, so this just loops like crazy. How can I verify that the child is unloaded prior to Re-launching the Exit app function.

Thanks in advance...

*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
AnswerRe: Closing Application Properly Pin
S. Senthil Kumar24-Oct-05 19:41
S. Senthil Kumar24-Oct-05 19:41 
Questionrich text box Pin
Agyeman24-Oct-05 7:44
Agyeman24-Oct-05 7:44 
AnswerRe: rich text box Pin
mav.northwind24-Oct-05 9:05
mav.northwind24-Oct-05 9:05 
QuestionClass diagram of Custom Class in c#.net ? Pin
snasoft24-Oct-05 6:50
snasoft24-Oct-05 6:50 
AnswerRe: Class diagram of Custom Class in c#.net ? Pin
enjoycrack24-Oct-05 12:17
enjoycrack24-Oct-05 12:17 
Question.NET MODBUS component Pin
Dwayner7924-Oct-05 6:44
Dwayner7924-Oct-05 6:44 
Questionlimiting tcp data transfer Pin
Gil.Schmidt24-Oct-05 5:40
Gil.Schmidt24-Oct-05 5:40 
AnswerRe: limiting tcp data transfer Pin
Judah Gabriel Himango24-Oct-05 6:36
sponsorJudah Gabriel Himango24-Oct-05 6:36 
GeneralRe: limiting tcp data transfer Pin
Gil.Schmidt24-Oct-05 8:41
Gil.Schmidt24-Oct-05 8:41 
GeneralRe: limiting tcp data transfer Pin
Judah Gabriel Himango24-Oct-05 12:17
sponsorJudah Gabriel Himango24-Oct-05 12:17 
GeneralRe: limiting tcp data transfer Pin
Gil.Schmidt24-Oct-05 23:44
Gil.Schmidt24-Oct-05 23:44 
Question.NET Framework 1.1 and List Class? Pin
zaboboa24-Oct-05 4:58
zaboboa24-Oct-05 4:58 
AnswerRe: .NET Framework 1.1 and List Class? Pin
Tom Larsen24-Oct-05 5:22
Tom Larsen24-Oct-05 5:22 
GeneralRe: .NET Framework 1.1 and List Class? Pin
zaboboa24-Oct-05 5:33
zaboboa24-Oct-05 5:33 
GeneralRe: .NET Framework 1.1 and List Class? Pin
Dave Kreskowiak24-Oct-05 6:38
mveDave Kreskowiak24-Oct-05 6:38 
GeneralRe: .NET Framework 1.1 and List Class? Pin
zaboboa24-Oct-05 7:55
zaboboa24-Oct-05 7:55 
QuestionMake a method appear in the properties window Pin
monteiz24-Oct-05 4:18
monteiz24-Oct-05 4:18 

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.