Click here to Skip to main content
15,914,160 members
Home / Discussions / C#
   

C#

 
GeneralCustomizing buttons Pin
rul30321-Nov-03 13:57
rul30321-Nov-03 13:57 
GeneralRe: Customizing buttons Pin
A.Wegierski21-Nov-03 17:54
A.Wegierski21-Nov-03 17:54 
GeneralRe: Customizing buttons Pin
Heath Stewart22-Nov-03 4:46
protectorHeath Stewart22-Nov-03 4:46 
QuestionHow to access command prompt Pin
Anonymous21-Nov-03 10:17
Anonymous21-Nov-03 10:17 
AnswerRe: How to access command prompt Pin
obelisk2921-Nov-03 10:35
obelisk2921-Nov-03 10:35 
GeneralWıindows does not shut down! Heelp! Pin
Utku KAYA21-Nov-03 9:00
Utku KAYA21-Nov-03 9:00 
GeneralRe: Wıindows does not shut down! Heelp! Pin
Daniel M. Edwards21-Nov-03 13:13
Daniel M. Edwards21-Nov-03 13:13 
GeneralRe: Wıindows does not shut down! Heelp! Pin
JJF00721-Nov-03 14:24
JJF00721-Nov-03 14:24 
Your Problem is that you override the close function. So if Win tries to shutdown your app still wants to go to trayicon and prevents Win from Shutdown.


Use this code to fetch the Win Shutdown Command:

protected override void WndProc(ref Message m)
{
base.WndProc (ref m);
if (m.Msg == 0x11)
{
boolAlowClose = true;
this.Close();
}
}

So i think you have a bool where you set true if you want realy to leave the application (where you check the bool on app close event and set e.cancel)

Hope this helps!


Greets



Matthias
QuestionHow can a service programatically kill itself Pin
Darryl Borden21-Nov-03 6:18
Darryl Borden21-Nov-03 6:18 
AnswerRe: How can a service programatically kill itself Pin
Darryl Borden21-Nov-03 6:48
Darryl Borden21-Nov-03 6:48 
GeneralGrabbing an tab page from a tab control Pin
RB@Emphasys21-Nov-03 4:09
RB@Emphasys21-Nov-03 4:09 
GeneralRe: Grabbing an tab page from a tab control Pin
Heath Stewart21-Nov-03 4:42
protectorHeath Stewart21-Nov-03 4:42 
GeneralRe: Grabbing an tab page from a tab control Pin
RB@Emphasys21-Nov-03 5:29
RB@Emphasys21-Nov-03 5:29 
GeneralRe: Grabbing an tab page from a tab control Pin
Judah Gabriel Himango21-Nov-03 4:45
sponsorJudah Gabriel Himango21-Nov-03 4:45 
GeneralRe: Grabbing an tab page from a tab control Pin
Heath Stewart21-Nov-03 5:37
protectorHeath Stewart21-Nov-03 5:37 
GeneralHowto create a extra Taskbar for a small battery bar Pin
maZeX21-Nov-03 3:27
maZeX21-Nov-03 3:27 
GeneralRe: Howto create a extra Taskbar for a small battery bar Pin
Heath Stewart21-Nov-03 4:26
protectorHeath Stewart21-Nov-03 4:26 
Generalto get the character which mouse pointer focus on Pin
katoya21-Nov-03 3:16
katoya21-Nov-03 3:16 
GeneralHelp with FolderBrowserDialog... Pin
Søren Christensen21-Nov-03 3:16
Søren Christensen21-Nov-03 3:16 
GeneralRe: Help with FolderBrowserDialog... Pin
Heath Stewart21-Nov-03 4:15
protectorHeath Stewart21-Nov-03 4:15 
GeneralCaptureSound a DirectX code sample Pin
thomasa21-Nov-03 3:01
thomasa21-Nov-03 3:01 
GeneralRe: CaptureSound a DirectX code sample Pin
Heath Stewart21-Nov-03 4:22
protectorHeath Stewart21-Nov-03 4:22 
GeneralLets see Heath answer this one then! Pin
Martin Cross20-Nov-03 22:59
Martin Cross20-Nov-03 22:59 
GeneralRe: Lets see Heath answer this one then! Pin
Nick Parker21-Nov-03 3:18
protectorNick Parker21-Nov-03 3:18 
GeneralRe: Lets see Heath answer this one then! Pin
Martin Cross21-Nov-03 3:45
Martin Cross21-Nov-03 3:45 

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.