Click here to Skip to main content
15,891,951 members
Home / Discussions / C#
   

C#

 
GeneralRe: radiobutton BeforeStateChange ? [modified] Pin
fracalifa12-Jul-07 0:32
fracalifa12-Jul-07 0:32 
GeneralRe: radiobutton BeforeStateChange ? Pin
Luc Pattyn12-Jul-07 0:36
sitebuilderLuc Pattyn12-Jul-07 0:36 
GeneralRe: radiobutton BeforeStateChange ? Pin
fracalifa12-Jul-07 0:40
fracalifa12-Jul-07 0:40 
JokeRe: radiobutton BeforeStateChange ? Pin
Luc Pattyn12-Jul-07 1:44
sitebuilderLuc Pattyn12-Jul-07 1:44 
AnswerRe: radiobutton BeforeStateChange ? Pin
ruanr12-Jul-07 0:23
ruanr12-Jul-07 0:23 
AnswerRe: radiobutton BeforeStateChange ? Pin
Martin#12-Jul-07 0:39
Martin#12-Jul-07 0:39 
GeneralRe: radiobutton BeforeStateChange ? Pin
fracalifa12-Jul-07 1:07
fracalifa12-Jul-07 1:07 
GeneralRe: radiobutton BeforeStateChange ? Pin
Martin#12-Jul-07 1:11
Martin#12-Jul-07 1:11 
But haven't you allready told the solution with overriding the OnClick.
I tested it with an inherited (from RadioButton) control.
private bool _disable = false;
public bool Disable
{
    get
    {
        return _disable;
    }
    set
    {
        if(value!=_disable)
        {
            _disable = value;
        }
    }
}

protected override void OnClick(EventArgs e)
{
    if(!Disable)
        base.OnClick (e);
}


Works well for me.

All the best,

Martin

GeneralRe: radiobutton BeforeStateChange ? Pin
fracalifa12-Jul-07 1:18
fracalifa12-Jul-07 1:18 
GeneralRe: radiobutton BeforeStateChange ? Pin
Martin#12-Jul-07 1:40
Martin#12-Jul-07 1:40 
Questioncreating a custom editor Pin
KaleoDev11-Jul-07 21:38
KaleoDev11-Jul-07 21:38 
AnswerRe: creating a custom editor Pin
Bekjong12-Jul-07 0:03
Bekjong12-Jul-07 0:03 
GeneralRe: creating a custom editor Pin
KaleoDev12-Jul-07 1:52
KaleoDev12-Jul-07 1:52 
GeneralRe: creating a custom editor Pin
Bekjong12-Jul-07 1:59
Bekjong12-Jul-07 1:59 
GeneralRe: creating a custom editor Pin
KaleoDev12-Jul-07 2:13
KaleoDev12-Jul-07 2:13 
QuestionProblem with Timer object Pin
alashara11-Jul-07 21:22
alashara11-Jul-07 21:22 
AnswerRe: Problem with Timer object Pin
Martin#11-Jul-07 21:32
Martin#11-Jul-07 21:32 
GeneralRe: Problem with Timer object Pin
alashara11-Jul-07 23:13
alashara11-Jul-07 23:13 
GeneralRe: Problem with Timer object [modified] Pin
Martin#11-Jul-07 23:28
Martin#11-Jul-07 23:28 
GeneralRe: Problem with Timer object Pin
Luc Pattyn11-Jul-07 23:54
sitebuilderLuc Pattyn11-Jul-07 23:54 
QuestionDate time format Pin
MarkB77711-Jul-07 21:11
MarkB77711-Jul-07 21:11 
GeneralRe: Date time format Pin
Martin#11-Jul-07 21:38
Martin#11-Jul-07 21:38 
Questioninheritance Pin
vamsivss11-Jul-07 20:49
vamsivss11-Jul-07 20:49 
AnswerRe: inheritance Pin
Sathesh Sakthivel11-Jul-07 20:53
Sathesh Sakthivel11-Jul-07 20:53 
AnswerRe: inheritance [modified] Pin
Colin Angus Mackay11-Jul-07 22:50
Colin Angus Mackay11-Jul-07 22:50 

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.