Click here to Skip to main content
15,891,828 members
Home / Discussions / C#
   

C#

 
Question[C#] - Linking the designer and Form Pin
aravinda77713-Aug-07 9:35
aravinda77713-Aug-07 9:35 
AnswerRe: [C#] - Linking the designer and Form Pin
Hessam Jalali13-Aug-07 10:14
Hessam Jalali13-Aug-07 10:14 
GeneralRe: [C#] - Linking the designer and Form Pin
Scott Dorman13-Aug-07 10:26
professionalScott Dorman13-Aug-07 10:26 
AnswerRe: [C#] - Linking the designer and Form Pin
Scott Dorman13-Aug-07 10:25
professionalScott Dorman13-Aug-07 10:25 
QuestionTerminal Controls Pin
prabhuranganathan13-Aug-07 9:17
prabhuranganathan13-Aug-07 9:17 
QuestionArrayControl [modified] Pin
mghiassi13-Aug-07 8:50
mghiassi13-Aug-07 8:50 
AnswerRe: ArrayControl Pin
Christian Graus13-Aug-07 8:54
protectorChristian Graus13-Aug-07 8:54 
AnswerRe: ArrayControl Pin
Luc Pattyn13-Aug-07 8:57
sitebuilderLuc Pattyn13-Aug-07 8:57 
Hi,

Visual Designer will not let you do this; it insists on having unique names
for controls. There are two ways to solve this:
- don't use VD for these controls, just create your controls programmatically,
so you can give them any valid name you choose, including array[index]-like names
provided you declare such an array of course.
- keep the controls as they are; now create a collection (array, ArrayList, List,
whatever) and add the controls to that list.

BTW: maybe you don't need anything new; you can iterate over all controls in
a container like this:
foreach(Control c in this.Controls) {
    Button btn=c as Button;
    if (btn!=null) btn.PerformClick();
}


The above would find all buttons and click them one by one.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: ArrayControl Pin
Giorgi Dalakishvili13-Aug-07 9:17
mentorGiorgi Dalakishvili13-Aug-07 9:17 
QuestionO/R Mapping Tools .. Simple Objects ? Pin
Dato13-Aug-07 8:17
Dato13-Aug-07 8:17 
AnswerRe: O/R Mapping Tools .. Simple Objects ? Pin
Drew Stainton14-Aug-07 18:03
Drew Stainton14-Aug-07 18:03 
QuestionCode to send data over GPRS Network Pin
Babubhai0713-Aug-07 7:53
Babubhai0713-Aug-07 7:53 
AnswerRe: Code to send data over GPRS Network Pin
plastio13-Aug-07 10:11
plastio13-Aug-07 10:11 
GeneralRe: Code to send data over GPRS Network Pin
Babubhai0714-Aug-07 0:46
Babubhai0714-Aug-07 0:46 
GeneralRe: Code to send data over GPRS Network Pin
plastio14-Aug-07 1:48
plastio14-Aug-07 1:48 
GeneralRe: Code to send data over GPRS Network Pin
Babubhai0714-Aug-07 4:08
Babubhai0714-Aug-07 4:08 
GeneralRe: Code to send data over GPRS Network Pin
Babubhai0714-Aug-07 5:33
Babubhai0714-Aug-07 5:33 
GeneralRe: Code to send data over GPRS Network Pin
plastio14-Aug-07 5:34
plastio14-Aug-07 5:34 
QuestionWhat is output Pin
seemamltn13-Aug-07 7:44
seemamltn13-Aug-07 7:44 
AnswerRe: What is output Pin
Michael Potter13-Aug-07 7:57
Michael Potter13-Aug-07 7:57 
AnswerRe: What is output Pin
Christian Graus13-Aug-07 8:17
protectorChristian Graus13-Aug-07 8:17 
AnswerRe: What is output Pin
Dan Neely13-Aug-07 8:49
Dan Neely13-Aug-07 8:49 
AnswerRe: What is output Pin
Luc Pattyn13-Aug-07 9:00
sitebuilderLuc Pattyn13-Aug-07 9:00 
AnswerRe: What is output Pin
m@u13-Aug-07 9:38
m@u13-Aug-07 9:38 
JokeRe: What is output Pin
Luc Pattyn13-Aug-07 9:52
sitebuilderLuc Pattyn13-Aug-07 9:52 

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.