Solved

Adding a fourth button to the close, restore minimise buttons

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

617 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