Solved

Adding a fourth button to the close, restore minimise buttons

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

809 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