Click here to Skip to main content
15,887,328 members
Home / Discussions / C#
   

C#

 
GeneralRe: Minimize to system tray Pin
Anonymous9-Oct-03 23:09
Anonymous9-Oct-03 23:09 
GeneralRe: Minimize to system tray Pin
devvvy10-Oct-03 7:24
devvvy10-Oct-03 7:24 
GeneralRe: Minimize to system tray Pin
Guillermo Rivero10-Oct-03 7:32
Guillermo Rivero10-Oct-03 7:32 
GeneralRe: Minimize to system tray Pin
devvvy10-Oct-03 7:34
devvvy10-Oct-03 7:34 
GeneralI got it, but Title didn't get repainted properly. Pin
devvvy10-Oct-03 7:48
devvvy10-Oct-03 7:48 
GeneralRe: I got it, but Title didn't get repainted properly. Pin
Guillermo Rivero10-Oct-03 7:53
Guillermo Rivero10-Oct-03 7:53 
GeneralRe: I got it, but Title didn't get repainted properly. Pin
devvvy10-Oct-03 8:12
devvvy10-Oct-03 8:12 
GeneralRe: Minimize to system tray Pin
JJF00711-Oct-03 4:48
JJF00711-Oct-03 4:48 
What i am doing is to generate a TrayIcon and use this code:

// Public Bool for Closing the app
bool boolAlowClose = false;

// Press the closing Button at the app
protected void frmMain_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
if (!boolAlowClose)
{
this.m_notifyicon.Visible = true;
this.Hide();
e.Cancel = true;
}
else { e.Cancel = false; }
}

// ContextMenu from Trayicon to view the app again
private void cmnu_View_Form_Click(object sender, System.EventArgs e)
{
this.m_notifyicon.Visible = false;
this.Show();
}

// This is the Menu "Close" hat close the application
private void cmnu_Menu_Close_Click(object sender, System.EventArgs e)
{
boolAlowClose = true;
this.Close();
}

Hope this will help!


Matthias
GeneralRe: Minimize to system tray Pin
devvvy11-Oct-03 4:51
devvvy11-Oct-03 4:51 
Generaladding data to event Pin
gonenb9-Oct-03 21:33
gonenb9-Oct-03 21:33 
GeneralRe: adding data to event Pin
Chris Richner9-Oct-03 23:58
Chris Richner9-Oct-03 23:58 
GeneralRe: adding data to event Pin
James Simpson10-Oct-03 6:14
James Simpson10-Oct-03 6:14 
GeneralRe: adding data to event Pin
Meysam Mahfouzi10-Oct-03 18:04
Meysam Mahfouzi10-Oct-03 18:04 
GeneralRe: adding data to event Pin
gonenb11-Oct-03 9:19
gonenb11-Oct-03 9:19 
GeneralRe: adding data to event Pin
Meysam Mahfouzi14-Oct-03 18:13
Meysam Mahfouzi14-Oct-03 18:13 
GeneralExcel Pin
erbest9-Oct-03 21:07
erbest9-Oct-03 21:07 
GeneralDisable group components Pin
azusakt9-Oct-03 17:15
azusakt9-Oct-03 17:15 
GeneralRe: Disable group components Pin
David Stone9-Oct-03 18:24
sitebuilderDavid Stone9-Oct-03 18:24 
GeneralInterfacing with webcams Pin
Bog9-Oct-03 17:07
Bog9-Oct-03 17:07 
GeneralClass withing Class Pin
Nick Seng9-Oct-03 15:57
Nick Seng9-Oct-03 15:57 
GeneralRe: Class withing Class Pin
Guillermo Rivero9-Oct-03 16:20
Guillermo Rivero9-Oct-03 16:20 
GeneralRe: Class withing Class Pin
David Stone9-Oct-03 18:22
sitebuilderDavid Stone9-Oct-03 18:22 
GeneralRe: Class withing Class Pin
Guillermo Rivero9-Oct-03 21:12
Guillermo Rivero9-Oct-03 21:12 
GeneralRe: Class withing Class Pin
Guillermo Rivero9-Oct-03 21:30
Guillermo Rivero9-Oct-03 21:30 
GeneralRe: Class withing Class Pin
Blake Coverett9-Oct-03 16:34
Blake Coverett9-Oct-03 16:34 

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.