Click here to Skip to main content
15,891,372 members
Home / Discussions / C#
   

C#

 
QuestionThreading Problem. Pin
hdv21214-Aug-07 11:21
hdv21214-Aug-07 11:21 
AnswerRe: Threading Problem. Pin
Luc Pattyn14-Aug-07 14:10
sitebuilderLuc Pattyn14-Aug-07 14:10 
QuestionConvert Languages Pin
Thaer Hamael14-Aug-07 11:14
Thaer Hamael14-Aug-07 11:14 
AnswerRe: Convert Languages Pin
pmarfleet14-Aug-07 11:37
pmarfleet14-Aug-07 11:37 
Questioni all Convert Languages Pin
Thaer Hamael14-Aug-07 11:12
Thaer Hamael14-Aug-07 11:12 
AnswerRe: i all Convert Languages Pin
Luc Pattyn14-Aug-07 14:11
sitebuilderLuc Pattyn14-Aug-07 14:11 
QuestionListView Drag n Drop Pin
topksharma198214-Aug-07 9:08
topksharma198214-Aug-07 9:08 
QuestionALT+F4 Pin
Ronni Marker14-Aug-07 8:46
Ronni Marker14-Aug-07 8:46 
Hello Gents.
Am trying to alter the way ALT+F4 closes an application and hope I can get some guru help here.

I have a component that calls an Windows form for a regstration page. On that Windows form I have two buttons.

One closes the application by:

System.Environment.Exit();

and the other button closes the application by:

System.Enviroment.Exit(-1);

The first only closes the form that runs inside the component, the later closes the whole application including what ever application who calls the component.

Now my problem is that when the form that opens inside the compoent is active and a user hits ALT+F4, then the only the component closes and not the whole application.

To me it seems that a standard ALT+F4 is like invoking System.Environment.Exit() and not System.Enviroment.Exit(-1).

Is there any way I can force ALT+F4 to close the whole application like System.Enviroment.Exit(-1) does?

Cheers,
Ronni



AnswerRe: ALT+F4 Pin
Ronni Marker14-Aug-07 19:35
Ronni Marker14-Aug-07 19:35 
QuestionConvert Excel to XML Pin
T4AMD14-Aug-07 8:05
T4AMD14-Aug-07 8:05 
AnswerRe: Convert Excel to XML Pin
Giorgi Dalakishvili14-Aug-07 9:28
mentorGiorgi Dalakishvili14-Aug-07 9:28 
QuestionRe: Convert Excel to XML Pin
T4AMD14-Aug-07 9:39
T4AMD14-Aug-07 9:39 
AnswerRe: Convert Excel to XML Pin
Michael Sync14-Aug-07 21:58
Michael Sync14-Aug-07 21:58 
QuestionActive Directory Pin
franklinm14-Aug-07 7:59
franklinm14-Aug-07 7:59 
AnswerRe: Active Directory Pin
ekynox14-Aug-07 12:56
ekynox14-Aug-07 12:56 
GeneralRe: Active Directory Pin
franklinm15-Aug-07 14:30
franklinm15-Aug-07 14:30 
Questionsqlclient Pin
lankaudaranga14-Aug-07 7:26
lankaudaranga14-Aug-07 7:26 
AnswerRe: sqlclient Pin
ToddHileHoffer14-Aug-07 7:28
ToddHileHoffer14-Aug-07 7:28 
AnswerRe: sqlclient Pin
Michael Sync14-Aug-07 21:55
Michael Sync14-Aug-07 21:55 
QuestionQuestion int or Int32 Pin
ToddHileHoffer14-Aug-07 7:14
ToddHileHoffer14-Aug-07 7:14 
AnswerRe: Question int or Int32 Pin
Judah Gabriel Himango14-Aug-07 7:15
sponsorJudah Gabriel Himango14-Aug-07 7:15 
GeneralRe: Question int or Int32 Pin
ToddHileHoffer14-Aug-07 7:21
ToddHileHoffer14-Aug-07 7:21 
GeneralRe: Question int or Int32 Pin
DavidNohejl14-Aug-07 7:29
DavidNohejl14-Aug-07 7:29 
GeneralRe: Question int or Int32 Pin
Luc Pattyn14-Aug-07 7:38
sitebuilderLuc Pattyn14-Aug-07 7:38 
GeneralRe: Question int or Int32 Pin
Judah Gabriel Himango14-Aug-07 9:38
sponsorJudah Gabriel Himango14-Aug-07 9: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.