Site Wide Message: (current site time 9/9/2010 9:27:33 PM EDT)
  • We want your input! One of our sponsors wants to know your opinion about development related issues. Click here to tell us what you think.
  • Are you an emerging/young developer (aged 18-30)? If so, would you like the chance to affect future developer tools and products?
    If so, then click here to give your feedback.
 

Change Menu Colors

Print
Email
winzip icon
Submitted on: 8/6/2010 9:20:04 AM
By: Scythe 
Level: Advanced
User Rating: By 3 Users
Compatibility:VB 5.0, VB 6.0

Users have accessed this code  2039 times.
 
author picture
 
     Updated: Show Hotkey, Disabled Menus, Seperator, Checked, Better routines, Now you only have to add the module and 1 line of code on your form. Change all Menucolors (Text, Background, Selection and Selected Text) thru subclassing. Still use VB Menus like allways no extra coding needed. popups are possible. only 16k bigger EXE.
 
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 23 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify 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 Advanced 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
7/29/2010 5:10:48 AMSaed abumokh

good example, to see a perfect example , see http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=73156&lngWId=1 . to see a screen shot, see http://www.planetsourcecode.com/Upload_PSC/ScreenShots/PIC201051513351988.gif
(If this comment was disrespectful, please report it.)

 
8/5/2010 5:17:04 AMScythe

@Saed abumokh (or the only comment at the moment :-)
Your sample is far from perfect like mine. (To Big, Not Optimized, Direct form calls subclassed in Module...)
But you did a nice job 2
And the way you get the Menustruct seems to be much better than mine :-)

My code should only change the colors NOT MORE
Your version create a complete Ownerdrawn Menu with Icons ...
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!

Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.