Solved

Adding a fourth button to the close, restore minimise buttons

Posted on 2007-03-28
2
239 Views
Last Modified: 2013-11-26
Hi,

I would like to add a button to the close, restore, minimise buttons that are on windows forms. I have seen this done with AllAPI, which I sure many of you know (if not, let me know, I will post it somewhere for you to download, its an awesome api viewer with examples, etc).

They have a fourth button, which, when clicked, makes the application invisible and puts an icon in the system tray which you can click to make the app visible again.

I already have the code to do the system tray stuff, I just need some help with adding a button. I don't want to use the minimise button as some apps do, because my clients may well want to minimise the app in the traditional way too.

Thanks,

John
0
Comment
Question by:JSMCM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
viralypatel earned 250 total points
ID: 18806359
This code allows you to add any command button (or any control with hwnd) to the VB forms's title bar. (thats where u want it to be)

Download link: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=58651&lngWId=1
0
 
LVL 2

Author Comment

by:JSMCM
ID: 18806716
Just what I was looking for and more. Thanks for the link,

John
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question