index
>
Windows Forms General
> Check
Check
how do i grayout the textbox beside the conductor score when my user uncheck the the text box and enable it when my user check the checkbox ?
Computer Freek Monday, January 21, 2008 1:41 PM
On the checkbox's checked changed event:
Code Block
private
void
checkBox1_CheckedChanged(
object
sender,
EventArgs
e)
{
if
(checkBox1.Checked ==
true
)
textbox1.Enabled =
true
;
else
textbox1.Enabled =
false
;
}
Regards,
Fábio
Fábio Franco Monday, January 21, 2008 2:30 PM
On the checkbox's checked changed event:
Code Block
private
void
checkBox1_CheckedChanged(
object
sender,
EventArgs
e)
{
if
(checkBox1.Checked ==
true
)
textbox1.Enabled =
true
;
else
textbox1.Enabled =
false
;
}
Regards,
Fábio
Fábio Franco Monday, January 21, 2008 2:30 PM
You can use google to search for other answers
Custom Search
More Threads
How can I Create re-usable controls at runtime
A generic error occurred in GDI+.
abort thread
Problem in Visual Studio 2005 tiling MDI Child windows
loading a ".raw" format into a Bitmap object
Separation of data, forms and controls?
Add ins
Finding my way around richTextBox
Doesnt display text on statusStrip label
Performance problem with TIF
Home
Copyright 2009-2010 by windowsdevelop.com All rights reserved