Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Color checkbox 'checkbox'


Reply
 
Thread Tools Display Modes
  #1  
Old 11-25-2006, 12:50 PM
obot74639 obot74639 is offline
Junior Contributor
 
Join Date: Oct 2002
Location: Arizona
Posts: 308
Default Color checkbox 'checkbox'


HowcouldI affect the color of the option and checkbox control, like I can do fore/backcolor, but I want to also affect the check box color, or the option donut hole color. I have some dark interfaces, and those controls glare like flashlights, and I want to try to color them like the other controls, in a way. Any idea how to color a checkbox 'checkbox'?
Thanks
Reply With Quote
  #2  
Old 11-25-2006, 01:33 PM
MikeJ's Avatar
MikeJ MikeJ is offline
Retread

Retired Moderator
* Expert *
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 6,742
Default

Alas, not easily. You will have to subclass to find the WM_PAINT message, and then totally disregard it to create your own styles. In this article from the EliteVB Archive, Garrett Sever shows how to subclass to create your own control. It's going to take a lot of subclassing though, I'm afraid.
http://www.xtremevbtalk.com/showpost...06&postcount=6
__________________
{ Lex Fori } { Locus Classicus } { Rutilus Scrinium }
Osculare pultem meam!
Reply With Quote
  #3  
Old 11-27-2006, 07:44 PM
Roger_Wgnr's Avatar
Roger_Wgnr Roger_Wgnr is offline
CodeASaurus Hex

Forum Leader
* Expert *
 
Join Date: Jul 2006
Location: San Antonio TX
Posts: 2,427
Default

Just a quick point about this.

The color of the Option/Check box face is controled by the windows desktop setting.
If you change your Display Properties > Apperance > Window text it will change the color of the checkbox/option donut.
__________________
Code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. ~Martin Golding
The user is a peripheral that types when you issue a read request. ~Peter Williams
MSDN Visual Basic .NET General FAQ
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->