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

C#

 
AnswerRe: Array of account data Pin
Not Active19-Jan-09 7:03
mentorNot Active19-Jan-09 7:03 
GeneralRe: Array of account data Pin
ferronrsmith19-Jan-09 7:11
ferronrsmith19-Jan-09 7:11 
GeneralRe: Array of account data Pin
Not Active19-Jan-09 7:37
mentorNot Active19-Jan-09 7:37 
GeneralRe: Array of account data Pin
ferronrsmith19-Jan-09 8:53
ferronrsmith19-Jan-09 8:53 
GeneralRe: Array of account data Pin
Not Active19-Jan-09 10:27
mentorNot Active19-Jan-09 10:27 
Question[newbie] controls collection Pin
jon-8019-Jan-09 5:30
professionaljon-8019-Jan-09 5:30 
AnswerRe: [newbie] controls collection Pin
Not Active19-Jan-09 6:10
mentorNot Active19-Jan-09 6:10 
AnswerRe: [newbie] controls collection [modified] Pin
Luc Pattyn19-Jan-09 6:12
sitebuilderLuc Pattyn19-Jan-09 6:12 
Hi,

all Controls have an Enabled property, hence this should do it:

List< Control> controls=new List< Control>();
...
controls.Add(new TextBox());
...
Button btnCreate=new Button();
btnCreate.Text="Create";
controls.Add(btnCreate);
...
controls.AddRange(anotherControlsList);
...
foreach(Control c in controls) c.Enabled=true;
...
btnCreate.Text="Update";


This is all very basic, you should consider buying and studying a tutorial on C# and
Windows programming.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).


modified on Friday, June 10, 2011 12:11 PM

GeneralRe: [newbie] controls collection Pin
jon-8019-Jan-09 12:27
professionaljon-8019-Jan-09 12:27 
AnswerRe: [newbie] controls collection [modified] Pin
Luc Pattyn19-Jan-09 12:42
sitebuilderLuc Pattyn19-Jan-09 12:42 
AnswerRe: [newbie] controls collection Pin
Ben Fair19-Jan-09 6:15
Ben Fair19-Jan-09 6:15 
GeneralRe: [newbie] controls collection Pin
Not Active19-Jan-09 6:27
mentorNot Active19-Jan-09 6:27 
GeneralRe: [newbie] controls collection Pin
Ben Fair19-Jan-09 15:23
Ben Fair19-Jan-09 15:23 
QuestionFind out the path of a file in a c#-program, the user has double-clicked in the explorer Pin
tschmid8519-Jan-09 5:02
tschmid8519-Jan-09 5:02 
AnswerRe: Find out the path of a file in a c#-program, the user has double-clicked in the explorer [modified] Pin
Luc Pattyn19-Jan-09 5:16
sitebuilderLuc Pattyn19-Jan-09 5:16 
GeneralRe: Find out the path of a file in a c#-program, the user has double-clicked in the explorer Pin
tschmid8520-Jan-09 0:07
tschmid8520-Jan-09 0:07 
AnswerRe: Find out the path of a file in a c#-program, the user has double-clicked in the explorer [modified] Pin
Luc Pattyn20-Jan-09 1:02
sitebuilderLuc Pattyn20-Jan-09 1:02 
AnswerRe: Find out the path of a file in a c#-program, the user has double-clicked in the explorer Pin
Pete O'Hanlon19-Jan-09 5:19
mvePete O'Hanlon19-Jan-09 5:19 
AnswerRe: Find out the path of a file in a c#-program, the user has double-clicked in the explorer [modified] Pin
Luc Pattyn19-Jan-09 6:18
sitebuilderLuc Pattyn19-Jan-09 6:18 
GeneralRe: Find out the path of a file in a c#-program, the user has double-clicked in the explorer Pin
Pete O'Hanlon19-Jan-09 8:41
mvePete O'Hanlon19-Jan-09 8:41 
AnswerRe: Find out the path of a file in a c#-program, the user has double-clicked in the explorer Pin
Giorgi Dalakishvili19-Jan-09 5:28
mentorGiorgi Dalakishvili19-Jan-09 5:28 
QuestionSQL Relations Pin
ctrlnick19-Jan-09 4:56
ctrlnick19-Jan-09 4:56 
AnswerRe: SQL Relations Pin
Not Active19-Jan-09 5:01
mentorNot Active19-Jan-09 5:01 
GeneralRe: SQL Relations Pin
ctrlnick19-Jan-09 5:04
ctrlnick19-Jan-09 5:04 
GeneralRe: SQL Relations Pin
Not Active19-Jan-09 5:14
mentorNot Active19-Jan-09 5: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.