Groups | Blog | Home
all groups > dotnet windows forms controls > june 2004 >

dotnet windows forms controls : ReadOnly ChecBox


Dave Knake
6/26/2004 7:04:52 PM
Does any know how to add the ReadOnly property to a CheckBox using C#. Or
is anyone aware of a third party control that has a checkbox that a has a
readonly property.

Dave Knake
Apex Software, Inc.

hirf-spam-me-here NO[at]SPAM gmx.at
6/27/2004 2:06:37 AM
* "Dave Knake" <nospam@nospam.com> scripsit:
[quoted text, click to view]

Set the control's 'Enabled' property to 'False' or set its 'AutoCheck'
property to 'True'.

--
Herfried K. Wagner [MVP]
DalePres
6/27/2004 6:42:50 AM
You can use the click event to set the checked property back. If your data
sets checked to true then in your click event always set it back to true or
just set it back to the value of your data:

private void checkBox1_CheckedChanged(object sender, System.EventArgs e)

{

checkBox1.Checked = boolMyValue;

}

Dale

[quoted text, click to view]

AddThis Social Bookmark Button