Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
QuestionCrystal report Pin
KIDYA23-May-09 18:50
KIDYA23-May-09 18:50 
AnswerRe: Crystal report Pin
_Maxxx_24-May-09 16:57
professional_Maxxx_24-May-09 16:57 
QuestionX509 makecert from snk file (sn.exe)? Pin
devvvy23-May-09 17:44
devvvy23-May-09 17:44 
QuestionThreeState checkBox? Pin
Xenoserv23-May-09 16:17
Xenoserv23-May-09 16:17 
AnswerRe: ThreeState checkBox? Pin
Mycroft Holmes23-May-09 16:40
professionalMycroft Holmes23-May-09 16:40 
GeneralRe: ThreeState checkBox? Pin
Xenoserv23-May-09 17:02
Xenoserv23-May-09 17:02 
GeneralRe: ThreeState checkBox? Pin
Mycroft Holmes23-May-09 17:45
professionalMycroft Holmes23-May-09 17:45 
AnswerRe: ThreeState checkBox? Pin
Luc Pattyn23-May-09 17:05
sitebuilderLuc Pattyn23-May-09 17:05 
Hi,

as you don't use the Text property of the CheckBoxes, they aren't much more than a white/gray/black square. Why don't you make your own Control?

You could derive from Panel, and:
- give it a background color;
- a Clicked event to cycle through the possible colors;
- a value (either stored in the Tag, or through a Dictionary which maps colors to values, of any type you choose)

Instead of a color, you could paint a digit in there, by hooking up a Paint event handler; if Tag is a 1-digit string, then e.Graphics.DrawString(((Panel)sender).Tag,myFont,0,0); could be pretty close to what you want.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

AnswerRe: ThreeState checkBox? Pin
PIEBALDconsult23-May-09 17:52
mvePIEBALDconsult23-May-09 17:52 
GeneralRe: ThreeState checkBox? Pin
Xenoserv23-May-09 21:20
Xenoserv23-May-09 21:20 
AnswerRe: ThreeState checkBox? Pin
DaveyM6924-May-09 0:53
professionalDaveyM6924-May-09 0:53 
QuestionInstall Files In Root Directory Pin
BlitzPackage23-May-09 12:30
BlitzPackage23-May-09 12:30 
AnswerRe: Install Files In Root Directory Pin
Luc Pattyn23-May-09 12:40
sitebuilderLuc Pattyn23-May-09 12:40 
GeneralRe: Install Files In Root Directory Pin
BlitzPackage23-May-09 12:54
BlitzPackage23-May-09 12:54 
GeneralRe: Install Files In Root Directory Pin
Luc Pattyn23-May-09 13:04
sitebuilderLuc Pattyn23-May-09 13:04 
GeneralRe: Install Files In Root Directory Pin
BlitzPackage23-May-09 13:15
BlitzPackage23-May-09 13:15 
AnswerRe: Install Files In Root Directory Pin
harold aptroot23-May-09 12:59
harold aptroot23-May-09 12:59 
AnswerRe: Install Files In Root Directory Pin
BlitzPackage23-May-09 13:10
BlitzPackage23-May-09 13:10 
AnswerRe: Install Files In Root Directory Pin
Eddy Vluggen23-May-09 21:10
professionalEddy Vluggen23-May-09 21:10 
Questionhow to make the service to get stopped by itself once it has performed its job? Pin
Gilly Kumar23-May-09 12:09
Gilly Kumar23-May-09 12:09 
AnswerRe: how to make the service to get stopped by itself once it has performed its job? Pin
PIEBALDconsult23-May-09 17:54
mvePIEBALDconsult23-May-09 17:54 
GeneralRe: how to make the service to get stopped by itself once it has performed its job? Pin
Gilly Kumar24-May-09 3:02
Gilly Kumar24-May-09 3:02 
QuestionPostMessage a mouse click without bringing the target window into focus?? Pin
FocusedWolf23-May-09 11:52
FocusedWolf23-May-09 11:52 
AnswerRe: PostMessage a mouse click without bringing the target window into focus?? Pin
Luc Pattyn23-May-09 12:00
sitebuilderLuc Pattyn23-May-09 12:00 
QuestionWaiting for response in NetworkStream Pin
Quake2Player23-May-09 9:34
Quake2Player23-May-09 9:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.