Click here to Skip to main content
15,909,030 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net control behaves differently between Web and Windows application Pin
Dave Kreskowiak22-Sep-05 8:23
mveDave Kreskowiak22-Sep-05 8:23 
GeneralRe: .Net control behaves differently between Web and Windows application Pin
Heath Stewart22-Sep-05 8:33
protectorHeath Stewart22-Sep-05 8:33 
Questionproblem with a HEX array Pin
cue_ball22-Sep-05 7:42
cue_ball22-Sep-05 7:42 
AnswerRe: problem with a HEX array Pin
Heath Stewart22-Sep-05 8:09
protectorHeath Stewart22-Sep-05 8:09 
QuestionDataGridViewCheckBoxColumn Pin
Drew McGhie22-Sep-05 7:22
Drew McGhie22-Sep-05 7:22 
AnswerRe: DataGridViewCheckBoxColumn Pin
Drew McGhie22-Sep-05 7:59
Drew McGhie22-Sep-05 7:59 
QuestionMore Efficient Code Pin
Debs*22-Sep-05 6:58
Debs*22-Sep-05 6:58 
AnswerRe: More Efficient Code Pin
therealmccoy22-Sep-05 7:03
therealmccoy22-Sep-05 7:03 
If all of your checkboxes are located in a container control (panel, groupbox) or if they are the only controls on your form then you could use a foreach statement.

foreach(Control aControl in form1.controls)
{
CheckBox aCheckBox = (CheckBox) aControl;
aCheckBox.Enabled = true;
}

I did not test the above code. It's just off the top of my head.

You could also create and arraylist of checkboxes and interate through then the same way.



www.lovethosetrains.com

-- modified at 13:10 Thursday 22nd September, 2005
AnswerRe: More Efficient Code Pin
Robert Rohde22-Sep-05 8:06
Robert Rohde22-Sep-05 8:06 
GeneralRe: More Efficient Code Pin
Niklas Ulvinge22-Sep-05 8:51
Niklas Ulvinge22-Sep-05 8:51 
GeneralRe: More Efficient Code Pin
Robert Rohde22-Sep-05 9:05
Robert Rohde22-Sep-05 9:05 
GeneralRe: More Efficient Code Pin
Debs*22-Sep-05 10:30
Debs*22-Sep-05 10:30 
GeneralRe: More Efficient Code Pin
Niklas Ulvinge23-Sep-05 0:42
Niklas Ulvinge23-Sep-05 0:42 
AnswerRe: More Efficient Code -SOLVED Pin
Debs*23-Sep-05 7:11
Debs*23-Sep-05 7:11 
QuestionIEnumIDList.Next(...) is not working :( Pin
daouner22-Sep-05 5:28
daouner22-Sep-05 5:28 
AnswerRe: IEnumIDList.Next(...) is not working :( Pin
Heath Stewart22-Sep-05 6:29
protectorHeath Stewart22-Sep-05 6:29 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner22-Sep-05 7:25
daouner22-Sep-05 7:25 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner22-Sep-05 10:00
daouner22-Sep-05 10:00 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
Heath Stewart22-Sep-05 11:06
protectorHeath Stewart22-Sep-05 11:06 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner23-Sep-05 7:19
daouner23-Sep-05 7:19 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
Heath Stewart23-Sep-05 7:27
protectorHeath Stewart23-Sep-05 7:27 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner23-Sep-05 7:34
daouner23-Sep-05 7:34 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner23-Sep-05 9:08
daouner23-Sep-05 9:08 
QuestionRegular Expression for html tags Pin
brunoconde22-Sep-05 5:15
brunoconde22-Sep-05 5:15 
AnswerRe: Regular Expression for html tags Pin
Guffa22-Sep-05 6:14
Guffa22-Sep-05 6:14 

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.