Important alert: (current site time 7/16/2013 2:47:23 AM EDT)
 

winzip icon

Add Command Buttons To Form's TitleBar (Updated: 20-Feb-2005)

Email
Submitted on: 2/2/2005 3:20:09 PM
By: Abhishek.NET  
Level: Intermediate
User Rating: By 77 Users
Compatibility: VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 32911
author picture
(About the author)
 
     Updated: 20-Feb-2005. Now Include Example Showing Its Uses (Add To SysTray Code) This code allows you to add any command button (or any control with hwnd) to the VB forms's title bar. Take a look at my other PSC submission ID: 58620

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 32 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
2/2/2005 3:36:57 PMEvan Toder

awesome dude 5 balls
(If this comment was disrespectful, please report it.)

 
2/2/2005 5:45:04 PMAnders Lyman

just what I have been looking for.
5 from me.
(If this comment was disrespectful, please report it.)

 
2/2/2005 8:46:49 PMRenato Ciuffo

good job, 5 from me
(If this comment was disrespectful, please report it.)

 
2/2/2005 9:25:56 PMJohnno

Hey I'll throw in my 5 globes as well, good job
(If this comment was disrespectful, please report it.)

 
2/3/2005 8:26:42 AMFlex dit Tannos

nice job
(If this comment was disrespectful, please report it.)

 
2/3/2005 3:04:55 PMRandy Giese

Excellent! Thank you! (5)
(If this comment was disrespectful, please report it.)

 
2/3/2005 4:56:29 PMMike Douglas

I have no use for it, but I'm impressed. 5*
(If this comment was disrespectful, please report it.)

 
2/3/2005 7:11:08 PMLight Templer

Sorry, but:
* Size of button doesn't fit to the other buttons.
* Tool windows style is not supported.
* Subclassing is old style and can crash in IDE on break.

(If this comment was disrespectful, please report it.)

 
2/3/2005 11:33:33 PMPaul Turcksin

Very useful! 5 from me.
(If this comment was disrespectful, please report it.)

 
2/3/2005 11:47:22 PM

well done do know what to use it for but great work
5 from Me
(If this comment was disrespectful, please report it.)

 
2/12/2005 12:06:13 AMFred.cpp

Mario Is Right, The subclassing is unstable; about the other Light Templer comment, I have some Ideas. anyway works fine.
(If this comment was disrespectful, please report it.)

 
2/24/2005 2:38:01 PMHardStream Software Development

U know... thiz is really cool.
This is exactly what I was lookin' 4!
5x*
(If this comment was disrespectful, please report it.)

 
3/13/2005 10:46:26 AM

The button is not skinnable !
(If this comment was disrespectful, please report it.)

 
3/15/2005 10:46:50 PMJohn Manavalan

This is gr8
(If this comment was disrespectful, please report it.)

 
3/16/2005 5:48:25 PMomniball

Cool, dude. I give it 5 thumbs up.
(If this comment was disrespectful, please report it.)

 
3/21/2005 6:47:23 AMOrlando Alvares Rios

Cool dude, 5 from me
(If this comment was disrespectful, please report it.)

 
3/22/2005 12:17:41 PM

hey guys, i need some help, to you all it may be a dum questio but i forgot how to program a next and previous button, so thst i can put up a list of pictures to look through. Can any of you help me?
thanks
-AJ
(If this comment was disrespectful, please report it.)

 
3/23/2005 4:52:37 AM

Good Work
(If this comment was disrespectful, please report it.)

 
4/1/2005 1:36:02 PM

I want to know how to do this on the infocus Windows or on all windows, not just the one in the project. If any one has any ideas how to do this please let me know.
(If this comment was disrespectful, please report it.)

 
4/2/2005 10:24:54 AM

Perfect !!

Sometimes i asked for buttons on title bar.. But its really perfect! ! 5 points
(If this comment was disrespectful, please report it.)

 
4/15/2005 3:43:59 AMSPY-3

nice code multi form support would be nice and probably is not hard so ill see what i can do. 5 globes
(If this comment was disrespectful, please report it.)

 
5/26/2005 12:25:47 AM

extreamly interesting,
(If this comment was disrespectful, please report it.)

 
8/29/2005 8:11:55 AMMarcus Schmitt

Has anyone tried to get this button in other windows ? I got the ThreadID from other Windows, also the Handle, but it doesn't work.
(If this comment was disrespectful, please report it.)

 
8/29/2005 11:19:00 AMSriharish.H

Nice code, 5 globes
(If this comment was disrespectful, please report it.)

 
9/10/2005 9:28:58 AMTcm9669

WEW....GOOD work. 5 shining stars from me(excellent vote)!
(If this comment was disrespectful, please report it.)

 
9/10/2005 10:39:00 AMMax Christian Pohle

5 globes also from me
(If this comment was disrespectful, please report it.)

 
9/11/2005 4:02:58 AMARUN CHAKRAVARTHY T

it's cool
(If this comment was disrespectful, please report it.)

 
9/11/2005 5:12:35 AMRde

Well, I'm just impressed you can code this good on that old computer (see screenshot :)
(If this comment was disrespectful, please report it.)

 
9/12/2005 6:28:58 PMTom Pydeski

Rde read my mind!
;-)
Nice job, especially the "Demostration Purposes Only" part.
I threw 5 "Tool tip balloons" at ya.
(If this comment was disrespectful, please report it.)

 
1/22/2007 11:20:13 PMlalangdj

good for me
(If this comment was disrespectful, please report it.)

 
12/2/2007 9:03:30 AMKabyr

Yet to try ur code brother, but whatz on d screeshot is awsome. Im a newbee and i appreciate ur good work. its beautiful for us to learn from. U make me feel proud of PSC.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.