Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: CVS` Pin
Mark Churchill13-Sep-07 15:26
Mark Churchill13-Sep-07 15:26 
AnswerRe: CVS` Pin
Chennaigirl26-Sep-07 21:23
Chennaigirl26-Sep-07 21:23 
QuestionBack Porting Application Pin
pippyn13-Sep-07 5:16
pippyn13-Sep-07 5:16 
AnswerRe: Back Porting Application Pin
Frank Kerrigan13-Sep-07 6:18
Frank Kerrigan13-Sep-07 6:18 
AnswerRe: Back Porting Application Pin
Dave Kreskowiak13-Sep-07 6:18
mveDave Kreskowiak13-Sep-07 6:18 
GeneralRe: Back Porting Application Pin
pippyn13-Sep-07 6:41
pippyn13-Sep-07 6:41 
GeneralRe: Back Porting Application Pin
Dave Kreskowiak13-Sep-07 9:33
mveDave Kreskowiak13-Sep-07 9:33 
QuestionClosing a form Pin
Justin Perez13-Sep-07 4:38
Justin Perez13-Sep-07 4:38 
I am aware of how to close a form. But, in a project I have been working on, the from cannot be created regularly. My Program.Cs looks like this:

static void Main()<br />
    {<br />
      Application.EnableVisualStyles();<br />
      Application.SetCompatibleTextRenderingDefault(false);<br />
      CreateForm(true);<br />
      Application.Run();<br />
    }<br />
<br />
    public static void CreateForm(bool blIsClosing)<br />
    {<br />
      frmMain frmFace = new frmMain();<br />
<br />
      if (blIsClosing == true)<br />
      {<br />
        frmFace.Close()<br />
      }<br />
    }


So, my question is, from the form that I have created, how can I close it. I can call theFrm.Close(), and the form will dissapear, as well as my tray icon. But, the program is still running(as in Visual Studio still sees the form as running) How Can I close the form, and actually kill the process from the form that I have created?



I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

AnswerRe: Closing a form Pin
Lutosław13-Sep-07 4:50
Lutosław13-Sep-07 4:50 
AnswerRe: Closing a form Pin
Michael Potter13-Sep-07 4:57
Michael Potter13-Sep-07 4:57 
Questionhide/disable MyComputer/drives Pin
H.R13-Sep-07 4:30
H.R13-Sep-07 4:30 
AnswerRe: hide/disable MyComputer/drives Pin
Frank Kerrigan13-Sep-07 6:20
Frank Kerrigan13-Sep-07 6:20 
QuestionChecking if any items in a listbox are selected Pin
Lucy13-Sep-07 3:33
Lucy13-Sep-07 3:33 
AnswerRe: Checking if any items in a listbox are selected Pin
Luc Pattyn13-Sep-07 4:03
sitebuilderLuc Pattyn13-Sep-07 4:03 
GeneralRe: Checking if any items in a listbox are selected Pin
Lucy13-Sep-07 4:23
Lucy13-Sep-07 4:23 
GeneralRe: Checking if any items in a listbox are selected Pin
alisardar13-Sep-07 10:03
alisardar13-Sep-07 10:03 
AnswerRe: Checking if any items in a listbox are selected Pin
led mike13-Sep-07 4:28
led mike13-Sep-07 4:28 
GeneralRe: Checking if any items in a listbox are selected Pin
Lucy13-Sep-07 4:42
Lucy13-Sep-07 4:42 
GeneralRe: Checking if any items in a listbox are selected Pin
led mike13-Sep-07 7:38
led mike13-Sep-07 7:38 
QuestionMemory Usage Pin
student_rhr13-Sep-07 3:21
student_rhr13-Sep-07 3:21 
AnswerRe: Memory Usage Pin
Guffa13-Sep-07 3:28
Guffa13-Sep-07 3:28 
GeneralRe: Memory Usage Pin
student_rhr13-Sep-07 4:12
student_rhr13-Sep-07 4:12 
GeneralRe: Memory Usage Pin
Lutosław13-Sep-07 4:53
Lutosław13-Sep-07 4:53 
AnswerRe: Memory Usage Pin
Urs Enzler13-Sep-07 3:57
Urs Enzler13-Sep-07 3:57 
AnswerRe: Memory Usage Pin
Judah Gabriel Himango13-Sep-07 9:47
sponsorJudah Gabriel Himango13-Sep-07 9:47 

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.