Click here to Skip to main content
16,005,080 members
Home / Discussions / C#
   

C#

 
GeneralRe: Atributes Pin
Corinna John28-Jun-04 2:37
Corinna John28-Jun-04 2:37 
GeneralRe: Atributes Pin
Stefan Troschuetz28-Jun-04 2:50
Stefan Troschuetz28-Jun-04 2:50 
GeneralAuthenticate against localhost and AD Pin
michalJ28-Jun-04 1:55
michalJ28-Jun-04 1:55 
GeneralRe: Authenticate against localhost and AD Pin
Nick Parker28-Jun-04 3:12
protectorNick Parker28-Jun-04 3:12 
GeneralProblem on terminating an application Pin
Ravikumar_mv27-Jun-04 22:30
Ravikumar_mv27-Jun-04 22:30 
GeneralRe: Problem on terminating an application Pin
Stefan Troschuetz27-Jun-04 23:10
Stefan Troschuetz27-Jun-04 23:10 
GeneralRe: Problem on terminating an application Pin
Ravikumar_mv27-Jun-04 23:57
Ravikumar_mv27-Jun-04 23:57 
GeneralRe: Problem on terminating an application Pin
Stefan Troschuetz28-Jun-04 0:28
Stefan Troschuetz28-Jun-04 0:28 
Ravikumar_mv wrote:
Application.exit() or the start form.close() , are both of them equal?

No they are not! The Application.Exit method informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed. Whereas the Form.Close only closes a form, which doesn't necessarily result in termination of your application.
Also note what the documentation for both methods states:
"CAUTION The Form.Closed and Form.Closing events are not raised when the Application.Exit method is called to exit your application. If you have validation code in either of these events that must be executed, you should call the Form.Close method for each open form individually before calling the Exit method."

Ravikumar_mv wrote:
If we set isbackground property to true. after the form.close(), all the threads of the application will automatically aborted?

Yes they get automatically aborted. Documentation for the IsBackground property says:
"Once all foreground threads belonging to a process have terminated, the common language runtime ends the process by invoking Abort on any background threads that are still alive."







www.troschuetz.de
GeneralRe: Problem on terminating an application Pin
Dave Kreskowiak28-Jun-04 4:22
mveDave Kreskowiak28-Jun-04 4:22 
GeneralRe: Problem on terminating an application Pin
Ravikumar_mv29-Jun-04 23:03
Ravikumar_mv29-Jun-04 23:03 
GeneralNo data found when exporting dataset to excel Pin
Anonymous27-Jun-04 22:22
Anonymous27-Jun-04 22:22 
GeneralRe: No data found when exporting dataset to excel Pin
Dave Kreskowiak28-Jun-04 4:14
mveDave Kreskowiak28-Jun-04 4:14 
GeneralRe: No data found when exporting dataset to excel Pin
Heath Stewart28-Jun-04 4:16
protectorHeath Stewart28-Jun-04 4:16 
GeneralDataSet generator error Pin
Member 114126627-Jun-04 20:16
Member 114126627-Jun-04 20:16 
GeneralRe: DataSet generator error Pin
Dave Kreskowiak28-Jun-04 4:05
mveDave Kreskowiak28-Jun-04 4:05 
GeneralRe: DataSet generator error Pin
Heath Stewart28-Jun-04 4:11
protectorHeath Stewart28-Jun-04 4:11 
GeneralRe: DataSet generator error Pin
Member 114126629-Jun-04 2:10
Member 114126629-Jun-04 2:10 
QuestionBest way to print an image that may be larger than one page? Pin
Pain_Elemental27-Jun-04 20:15
Pain_Elemental27-Jun-04 20:15 
AnswerRe: Best way to print an image that may be larger than one page? Pin
Heath Stewart28-Jun-04 3:55
protectorHeath Stewart28-Jun-04 3:55 
GeneralOne more security question Pin
MKlucher27-Jun-04 18:36
MKlucher27-Jun-04 18:36 
GeneralRe: One more security question Pin
Heath Stewart27-Jun-04 18:44
protectorHeath Stewart27-Jun-04 18:44 
GeneralRe: One more security question Pin
MKlucher27-Jun-04 19:03
MKlucher27-Jun-04 19:03 
GeneralRe: One more security question Pin
Heath Stewart27-Jun-04 19:12
protectorHeath Stewart27-Jun-04 19:12 
GeneralRun Expect scripts from managed code Pin
inyoursadachine27-Jun-04 18:07
inyoursadachine27-Jun-04 18:07 
GeneralRe: Run Expect scripts from managed code Pin
Heath Stewart27-Jun-04 18:18
protectorHeath Stewart27-Jun-04 18: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.