Solved

Adding a fourth button to the close, restore minimise buttons

Posted on 2007-03-28
2
235 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA open file from excel cell 4 44
Visual Studio search word table and return Cell index 8 69
TT Auto Dashboard 13 95
VBA: Insert New column with specific format type 12 38
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

860 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