I am sure this is possible, it just may not be easy, is there a way to minimize any program to the system tray?
Printable View
I am sure this is possible, it just may not be easy, is there a way to minimize any program to the system tray?
There's a notify icon control in your toolbox, you still have to code the actual hiding of the window yourself though.
:thumb:
Ok, i no that but how would i hide...say outlook into the system tray.
I'm sorry I misread, I assumed you were talking about your own app. :blush:
Can't help in this case, sorry.
It ok, lol, any body know of a way to do this?
Maybe like processstartinfo, and hide it, then on the click of a notiyicon show it? is that possible, or is there a better way?
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.
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.Quote:
Originally Posted by {FPP}
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.
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