|
-
Feb 19th, 2006, 11:30 AM
#1
Thread Starter
Lively Member
C#Add form Button
Ok, I htink using API would be the best way to do this, I just dont know how, and was hoping someone could help.
This is what i want to do:
Allow the user to minimize any application to the system tray, not just the form. For example, if the clicked a button it might minimize outlook to the system tray, then show an icon, and they can bring it back up, by clicking the icon.
Can that be done? Thanks.
Also, would it be possible to add a button to all the programs, and make that button mizimize that app to the systemtray?
-FPP
-
Feb 21st, 2006, 01:58 AM
#2
Fanatic Member
Re: C#Add form Button
Wow, thats a doozy. Anythings possible, and I've done bits and pieces that could be hacked together to accomplish this sort of thing. Are you really sure you want to do this?
The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.
-
Feb 22nd, 2006, 10:24 PM
#3
Thread Starter
Lively Member
Re: C#Add form Button
Yes, I would really like to see what you have done . Thanks
-
Feb 23rd, 2006, 05:49 PM
#4
Fanatic Member
Re: C#Add form Button
Keep in mind this code will have to be in C++ not C#.
How did you envision the user "clicking a button" to minimize the windows to the tray. Is there a program with a list of all the open windows that you can minimize?
Also, for the part with a button being added to every window, where did you envision that button being placed on the window?
The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.
-
Feb 23rd, 2006, 06:12 PM
#5
Re: C#Add form Button
I use a utility called PowerMenu that adds an item to the system menu of each window that allows you to minimise them to the tray. That's a lot less obtrusive than adding a button, and probably easier too.
-
Feb 23rd, 2006, 08:51 PM
#6
Thread Starter
Lively Member
Re: C#Add form Button
Yea, somthing similar to power menu. though i may have trouble converting to C#. But ill give it a whirl.
-
Feb 23rd, 2006, 08:59 PM
#7
Fanatic Member
Re: C#Add form Button
You can't convert to C#. What happens is you have all other processes load a Win32 DLL you create into their address space and then you run your code to setup a context menu. It cannot be a managed DLL. You could control the whole thing from a program in C# but the meat of the code will be C++.
The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.
-
Feb 23rd, 2006, 09:39 PM
#8
Thread Starter
Lively Member
Re: C#Add form Button
Cool. So, what do ya have?
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
|