|
-
Jan 28th, 2006, 12:26 PM
#1
Thread Starter
Lively Member
System tray
I am sure this is possible, it just may not be easy, is there a way to minimize any program to the system tray?
-
Jan 28th, 2006, 01:02 PM
#2
Fanatic Member
Re: System tray
There's a notify icon control in your toolbox, you still have to code the actual hiding of the window yourself though.
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
-
Jan 28th, 2006, 01:06 PM
#3
Thread Starter
Lively Member
Re: System tray
Ok, i no that but how would i hide...say outlook into the system tray.
-
Jan 28th, 2006, 01:09 PM
#4
Fanatic Member
Re: System tray
I'm sorry I misread, I assumed you were talking about your own app. 
Can't help in this case, sorry.
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
-
Jan 28th, 2006, 01:16 PM
#5
Thread Starter
Lively Member
Re: System tray
It ok, lol, any body know of a way to do this?
-
Jan 28th, 2006, 04:54 PM
#6
Thread Starter
Lively Member
Re: System tray
Maybe like processstartinfo, and hide it, then on the click of a notiyicon show it? is that possible, or is there a better way?
-
Jan 28th, 2006, 07:39 PM
#7
Re: System tray
There is a utility available called PowerMenu that adds an option to the system menu of each window to minimise it to the system tray. If it's for your own conveneinec then just use that. If you want to distribute your own app that does it then you obviously can do it, but I've no doubt that it will require the use of API functions, as anything to do with windows outside you application usually does.
-
Jan 28th, 2006, 11:58 PM
#8
Thread Starter
Lively Member
Re: System tray
Yea, but i was looking to do it in C#.
-
Jan 29th, 2006, 01:52 AM
#9
Re: System tray
 Originally Posted by {FPP}
Yea, but i was looking to do it in C#.
You will have to write a C# application that calls Windows API functions. There's no way you can do what you want using just the .NET Framework. Like I said, manipulating windows that do not belong to your application almost always involves the Windows API.
-
Jan 29th, 2006, 08:12 AM
#10
Re: System tray
You could probably get a handle to the app you want to minimize and thn simply hide it completely and just put a notifyicon on the taskbar, this would then respond by re-showing the app again. Not sure how hard thi is to do but I thnk it can probably be done wihout any API.
I don't live here any more.
-
Jan 29th, 2006, 10:10 AM
#11
Thread Starter
Lively Member
Re: System tray
Thanks guys, im sure this could be modified. To what i want. Ill look into it.
http://www.c-sharpcorner.com/Code/2002/Nov/winghost.asp
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|