Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox.Checked Not There
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Checkbox.Checked Not There
Miscellaneous
Thread ID:
01408479
Message ID:
01408479
Views:
92
Control oControl = null;
Then later...
oControl = new MyRadioButton();
oControl.Text = sCaption;
oControl.Checked = Convert.ToBoolean(_DataRow[1]);
I'm getting
'System.Windows.Forms.Control' does not contain a definition for 'Checked' and no extension 
method 'Checked' accepting a first argument of type 'System.Windows.Forms.Control' could be found
Here's MyRadioButton
class MyRadioButton : RadioButton
{
}
So why isn't the Checked property there?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform