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

C#

 
GeneralRe: Ip scanner? Pin
Dave Kreskowiak17-Sep-09 7:22
mveDave Kreskowiak17-Sep-09 7:22 
GeneralRe: Ip scanner? Pin
nhqlbaislwfiikqraqnm17-Sep-09 10:21
nhqlbaislwfiikqraqnm17-Sep-09 10:21 
GeneralRe: Ip scanner? Pin
Dave Kreskowiak17-Sep-09 10:41
mveDave Kreskowiak17-Sep-09 10:41 
QuestionComparing ObservableCollections and making them same Pin
ramk_chirra17-Sep-09 5:16
ramk_chirra17-Sep-09 5:16 
AnswerRe: Comparing ObservableCollections and making them same Pin
Pete O'Hanlon17-Sep-09 5:24
mvePete O'Hanlon17-Sep-09 5:24 
AnswerRe: Comparing ObservableCollections and making them same Pin
N a v a n e e t h17-Sep-09 5:43
N a v a n e e t h17-Sep-09 5:43 
QuestionVB6 to C# conversion SetIndex issue Pin
xtr33me17-Sep-09 4:20
xtr33me17-Sep-09 4:20 
AnswerRe: VB6 to C# conversion SetIndex issue Pin
Luc Pattyn17-Sep-09 4:28
sitebuilderLuc Pattyn17-Sep-09 4:28 
Two suggestions:

1. don't touch the code inside InitializeComponent(), it isn't your code, it is the Designer's. And the Designer will change it any time it feels like changing it.

2. forget about SetIndex. If you need to easily access one or all of your checkboxes (or any other type of Control), create a collection yourself, by storing the references into a List<CheckBox> or something similar after your constructor called InitializeComponent(). A list accepts an integer index, so you can easily access the n-th checkbox if that is what you need.

Alternatively you can enumerate all top-level Controls of a Form, and pick the one(s) you need, like so:
foreach(Control c in this.Controls) {
    CheckBox cb=c as CheckBox;
    if (cb!=null) {
        // now cb points to one of your checkboxes
    }
}


Smile | :)

Luc Pattyn

Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: VB6 to C# conversion SetIndex issue [modified] Pin
N a v a n e e t h17-Sep-09 5:33
N a v a n e e t h17-Sep-09 5:33 
GeneralRe: VB6 to C# conversion SetIndex issue Pin
Luc Pattyn17-Sep-09 5:38
sitebuilderLuc Pattyn17-Sep-09 5:38 
GeneralRe: VB6 to C# conversion SetIndex issue Pin
xtr33me17-Sep-09 5:44
xtr33me17-Sep-09 5:44 
GeneralRe: VB6 to C# conversion SetIndex issue Pin
N a v a n e e t h17-Sep-09 5:45
N a v a n e e t h17-Sep-09 5:45 
Questionpremature garbage collection of static class causing problem Pin
akhanal17-Sep-09 4:05
akhanal17-Sep-09 4:05 
AnswerRe: premature garbage collection of static class causing problem Pin
Luc Pattyn17-Sep-09 4:19
sitebuilderLuc Pattyn17-Sep-09 4:19 
GeneralRe: premature garbage collection of static class causing problem Pin
akhanal17-Sep-09 4:31
akhanal17-Sep-09 4:31 
GeneralRe: premature garbage collection of static class causing problem Pin
Luc Pattyn17-Sep-09 4:57
sitebuilderLuc Pattyn17-Sep-09 4:57 
GeneralRe: premature garbage collection of static class causing problem Pin
akhanal17-Sep-09 5:18
akhanal17-Sep-09 5:18 
GeneralRe: premature garbage collection of static class causing problem Pin
akhanal17-Sep-09 5:25
akhanal17-Sep-09 5:25 
QuestionError in Loading assembly from Assembly.Load Pin
SRKSHOME17-Sep-09 3:31
SRKSHOME17-Sep-09 3:31 
AnswerRe: Error in Loading assembly from Assembly.Load Pin
Not Active17-Sep-09 4:19
mentorNot Active17-Sep-09 4:19 
AnswerRe: Error in Loading assembly from Assembly.Load Pin
Luc Pattyn17-Sep-09 4:20
sitebuilderLuc Pattyn17-Sep-09 4:20 
QuestionCalling GUI & path finding gurus Pin
izakfick17-Sep-09 3:27
izakfick17-Sep-09 3:27 
AnswerRe: Calling GUI & path finding gurus Pin
Pete O'Hanlon17-Sep-09 4:11
mvePete O'Hanlon17-Sep-09 4:11 
QuestionAllow space in text box - add the code for allowing spaces in regular expression validator Pin
coolsharath17-Sep-09 3:21
coolsharath17-Sep-09 3:21 
AnswerRe: Allow space in text box - add the code for allowing spaces in regular expression validator Pin
Calla17-Sep-09 3:40
Calla17-Sep-09 3:40 

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.