Click here to Skip to main content
16,018,353 members
Home / Discussions / C#
   

C#

 
GeneralRe: Changing the colour of the inside of a checkbox? Pin
MWRivera31-Jul-09 8:04
MWRivera31-Jul-09 8:04 
GeneralRe: Changing the colour of the inside of a checkbox? Pin
Xmen Real 31-Jul-09 8:21
professional Xmen Real 31-Jul-09 8:21 
GeneralRe: Changing the colour of the inside of a checkbox? Pin
MWRivera31-Jul-09 8:23
MWRivera31-Jul-09 8:23 
AnswerRe: Changing the colour of the inside of a checkbox? Pin
Baeltazor31-Jul-09 7:25
Baeltazor31-Jul-09 7:25 
GeneralRe: Changing the colour of the inside of a checkbox? Pin
MWRivera31-Jul-09 8:00
MWRivera31-Jul-09 8:00 
GeneralRe: Changing the colour of the inside of a checkbox? Pin
Baeltazor31-Jul-09 15:36
Baeltazor31-Jul-09 15:36 
GeneralRe: Changing the colour of the inside of a checkbox? Pin
MWRivera4-Aug-09 5:16
MWRivera4-Aug-09 5:16 
GeneralRe: Changing the colour of the inside of a checkbox? Pin
MWRivera4-Aug-09 6:46
MWRivera4-Aug-09 6:46 
Hi there,

I just want to let you know that I did find a work around. Not the best but it's alot more what I was looking for. It uses the OnClick event and when the form isn't in edit mode the checkBox is put back to it's origional state. I've included an example below to make it clearer:

oCheckBox.Click += new System.EventHandler(oCheckBox_OnClick);



private void oCheckBox_OnClick (object sender, System.EventArgs e)
        {

            if (!EditMode)
            {
                if (oCheckBox.Checked)
                    oCheckBox.Checked = false;
                else
                    oCheckBox.Checked = true;
            }

        }



If you have any feedback it would be very welcome.

Thanks again,
Mel
AnswerRe: Changing the colour of the inside of a checkbox? Pin
Henry Minute31-Jul-09 9:35
Henry Minute31-Jul-09 9:35 
GeneralRe: Changing the colour of the inside of a checkbox? Pin
MWRivera31-Jul-09 10:25
MWRivera31-Jul-09 10:25 
QuestionSystem tray refresh? Pin
mark_me31-Jul-09 6:30
mark_me31-Jul-09 6:30 
AnswerRe: System tray refresh? Pin
Xmen Real 31-Jul-09 6:42
professional Xmen Real 31-Jul-09 6:42 
GeneralRe: System tray refresh? Pin
mark_me31-Jul-09 7:17
mark_me31-Jul-09 7:17 
AnswerRe: System tray refresh? Pin
Baeltazor31-Jul-09 7:01
Baeltazor31-Jul-09 7:01 
GeneralRe: System tray refresh? Pin
Xmen Real 31-Jul-09 7:07
professional Xmen Real 31-Jul-09 7:07 
GeneralRe: System tray refresh? Pin
Baeltazor31-Jul-09 7:09
Baeltazor31-Jul-09 7:09 
GeneralRe: System tray refresh? Pin
mark_me31-Jul-09 7:12
mark_me31-Jul-09 7:12 
GeneralRe: System tray refresh? Pin
Baeltazor31-Jul-09 7:14
Baeltazor31-Jul-09 7:14 
GeneralRe: System tray refresh? Pin
mark_me31-Jul-09 7:18
mark_me31-Jul-09 7:18 
GeneralRe: System tray refresh? Pin
Luc Pattyn31-Jul-09 9:11
sitebuilderLuc Pattyn31-Jul-09 9:11 
GeneralRe: System tray refresh? Pin
Baeltazor31-Jul-09 9:15
Baeltazor31-Jul-09 9:15 
GeneralRe: System tray refresh? Pin
Luc Pattyn31-Jul-09 9:54
sitebuilderLuc Pattyn31-Jul-09 9:54 
GeneralRe: System tray refresh? Pin
Mycroft Holmes31-Jul-09 23:32
professionalMycroft Holmes31-Jul-09 23:32 
GeneralRe: System tray refresh? Pin
Luc Pattyn31-Jul-09 9:10
sitebuilderLuc Pattyn31-Jul-09 9:10 
GeneralRe: System tray refresh? Pin
mark_me31-Jul-09 10:01
mark_me31-Jul-09 10:01 

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.