Click here to Skip to main content
15,502,919 members
Home / Discussions / C#
   

C#

 
General.NET version dependent compilation Pin
brain2cpu12-Jan-04 22:09
professionalbrain2cpu12-Jan-04 22:09 
GeneralRe: .NET version dependent compilation Pin
Heath Stewart13-Jan-04 6:12
protectorHeath Stewart13-Jan-04 6:12 
QuestionDragDrop to a native window? Pin
TuringTest112-Jan-04 20:20
TuringTest112-Jan-04 20:20 
AnswerRe: DragDrop to a native window? Pin
Heath Stewart13-Jan-04 6:07
protectorHeath Stewart13-Jan-04 6:07 
GeneralRe: DragDrop to a native window? Pin
TuringTest113-Jan-04 6:55
TuringTest113-Jan-04 6:55 
Generalasking for system tray application Pin
azusakt12-Jan-04 17:25
azusakt12-Jan-04 17:25 
GeneralRe: asking for system tray application Pin
Jeff Mackie12-Jan-04 18:16
sussJeff Mackie12-Jan-04 18:16 
GeneralRe: asking for system tray application Pin
azusakt12-Jan-04 18:51
azusakt12-Jan-04 18:51 
Thanks for you reply Jeff,

I've done something like your code, and it works, but a little bit strange effect. I set the form's ShowInTaskBar property to false, and I used:

private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
     this.Show();
     this.WindowState = FormWindowState.Normal;
     this.notifyIcon.Visible = false;
}

private void ProgressBarForm_SizeChanged(object sender, System.EventArgs e)
{
     if(this.WindowState == FormWindowState.Minimized)
     {
	this.Hide();
	this.notifyIcon.Visible = true;
     }
} 


It works like your expection, but the visual effect looks strange,; it firstly minimized to left bottom corner and then hide, that means always flash to left corner and then restore. How can I minimize it directly to system tray?
GeneralRe: asking for system tray application Pin
Heath Stewart13-Jan-04 5:53
protectorHeath Stewart13-Jan-04 5:53 
Questionreturning when inside a lock - is it safe? Pin
Brandon Haase12-Jan-04 16:29
Brandon Haase12-Jan-04 16:29 
AnswerRe: returning when inside a lock - is it safe? Pin
Heath Stewart13-Jan-04 5:46
protectorHeath Stewart13-Jan-04 5:46 
GeneralRe: returning when inside a lock - is it safe? Pin
Brandon Haase13-Jan-04 17:13
Brandon Haase13-Jan-04 17:13 
AnswerRe: returning when inside a lock - is it safe? Pin
scadaguy13-Jan-04 6:23
scadaguy13-Jan-04 6:23 
GeneralRe: returning when inside a lock - is it safe? Pin
Brandon Haase13-Jan-04 17:28
Brandon Haase13-Jan-04 17:28 
Generalremoting access Pin
haih12-Jan-04 16:23
haih12-Jan-04 16:23 
GeneralRe: remoting access Pin
Heath Stewart13-Jan-04 5:31
protectorHeath Stewart13-Jan-04 5:31 
GeneralHelp with MonthCalendar class Pin
KingTermite12-Jan-04 16:18
KingTermite12-Jan-04 16:18 
GeneralRe: Help with MonthCalendar class Pin
Heath Stewart13-Jan-04 4:41
protectorHeath Stewart13-Jan-04 4:41 
GeneralRe: Help with MonthCalendar class Pin
KingTermite13-Jan-04 5:27
KingTermite13-Jan-04 5:27 
GeneralRe: Help with MonthCalendar class Pin
Heath Stewart13-Jan-04 5:37
protectorHeath Stewart13-Jan-04 5:37 
GeneralRe: Help with MonthCalendar class Pin
KingTermite13-Jan-04 6:43
KingTermite13-Jan-04 6:43 
GeneralRe: Help with MonthCalendar class Pin
Heath Stewart13-Jan-04 6:50
protectorHeath Stewart13-Jan-04 6:50 
GeneralRe: Help with MonthCalendar class Pin
KingTermite13-Jan-04 7:02
KingTermite13-Jan-04 7:02 
GeneralRe: Help with MonthCalendar class Pin
Heath Stewart13-Jan-04 7:47
protectorHeath Stewart13-Jan-04 7:47 
GeneralRe: Help with MonthCalendar class Pin
KingTermite15-Jan-04 15:49
KingTermite15-Jan-04 15:49 

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.