Click here to Skip to main content
16,004,974 members
Home / Discussions / C#
   

C#

 
Questionhow to realize that? Pin
zhoujun7-May-02 14:21
zhoujun7-May-02 14:21 
AnswerRe: how to realize that? Pin
James T. Johnson7-May-02 14:41
James T. Johnson7-May-02 14:41 
GeneralRe: how to realize that? Pin
zhoujun7-May-02 19:28
zhoujun7-May-02 19:28 
GeneralRe: how to realize that? Pin
Rickard Andersson207-May-02 22:44
Rickard Andersson207-May-02 22:44 
GeneralRe: how to realize that? Pin
James T. Johnson7-May-02 23:08
James T. Johnson7-May-02 23:08 
GeneralRe: how to realize that? Pin
zhoujun9-May-02 14:52
zhoujun9-May-02 14:52 
AnswerRe: how to realize that? Pin
Andres Manggini7-May-02 16:04
Andres Manggini7-May-02 16:04 
AnswerRe: how to realize that? Pin
Rocky Moore8-May-02 23:42
Rocky Moore8-May-02 23:42 
zhoujun wrote:
normally when minimize an application,the app will disappear from the windows desktop and will place an item at the taskbar!
then how can i avoid it to place an item at the taskbar?
just have a notification icon,when i double-click the notification icon,the application will resume!


Another way to check for Minimize is to override the OnResize and check your window state:
protected override void OnResize(System.EventArgs e)
{
    if(WindowState==FormWindowState.Minimized)
    {
	ShowInTaskbar = false;
    }
}

Be sure to save off you window placement and size first though. Then all you need to do is override the notification icon Click event and enable your window again.


Rocky Moore
GeneralRe: how to realize that? Pin
James T. Johnson9-May-02 0:22
James T. Johnson9-May-02 0:22 
GeneralRe: how to realize that? Pin
9-May-02 14:36
suss9-May-02 14:36 
QuestionFind a string in another string!? Pin
Rickard Andersson207-May-02 11:47
Rickard Andersson207-May-02 11:47 
AnswerRe: Find a string in another string!? Pin
David Wengier7-May-02 12:01
David Wengier7-May-02 12:01 
GeneralRe: Find a string in another string!? Pin
Rickard Andersson207-May-02 20:32
Rickard Andersson207-May-02 20:32 
GeneralRepost: ICodeCompiler Pin
Orion Buttigieg7-May-02 5:56
Orion Buttigieg7-May-02 5:56 
GeneralRe: Repost: ICodeCompiler Pin
Orion Buttigieg7-May-02 12:57
Orion Buttigieg7-May-02 12:57 
GeneralRe: Repost: ICodeCompiler Pin
James T. Johnson7-May-02 14:44
James T. Johnson7-May-02 14:44 
GeneralRe: Repost: ICodeCompiler Pin
Orion Buttigieg8-May-02 5:38
Orion Buttigieg8-May-02 5:38 
GeneralFocus problems... Pin
Joshua Guy7-May-02 5:25
Joshua Guy7-May-02 5:25 
GeneralRe: Focus problems... Pin
James T. Johnson7-May-02 14:59
James T. Johnson7-May-02 14:59 
GeneralSearch for files Pin
Rickard Andersson207-May-02 1:37
Rickard Andersson207-May-02 1:37 
GeneralRe: Search for files Pin
James T. Johnson7-May-02 2:51
James T. Johnson7-May-02 2:51 
GeneralRe: Search for files Pin
Rickard Andersson207-May-02 2:58
Rickard Andersson207-May-02 2:58 
GeneralRe: Search for files Pin
Daniel Turini8-May-02 8:12
Daniel Turini8-May-02 8:12 
GeneralRaising/Invoking Events - sending keystrokes/mouseclicks Pin
7-May-02 1:14
suss7-May-02 1:14 
GeneralRe: Raising/Invoking Events - sending keystrokes/mouseclicks Pin
James T. Johnson7-May-02 2:52
James T. Johnson7-May-02 2:52 

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.