Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data crypting at C# Pin
harold aptroot21-Feb-09 6:47
harold aptroot21-Feb-09 6:47 
GeneralRe: Data crypting at C# Pin
_c2h5oh_21-Feb-09 7:03
_c2h5oh_21-Feb-09 7:03 
GeneralRe: Data crypting at C# Pin
Dave Kreskowiak21-Feb-09 7:35
mveDave Kreskowiak21-Feb-09 7:35 
GeneralRe: Data crypting at C# Pin
_c2h5oh_21-Feb-09 8:14
_c2h5oh_21-Feb-09 8:14 
GeneralRe: Data crypting at C# Pin
Dave Kreskowiak21-Feb-09 10:48
mveDave Kreskowiak21-Feb-09 10:48 
GeneralRe: Data crypting at C# Pin
_c2h5oh_21-Feb-09 20:38
_c2h5oh_21-Feb-09 20:38 
QuestionChanging properties of more than one control at a time? Pin
High0ctane21-Feb-09 3:50
High0ctane21-Feb-09 3:50 
AnswerRe: Changing properties of more than one control at a time? Pin
Luc Pattyn21-Feb-09 4:26
sitebuilderLuc Pattyn21-Feb-09 4:26 
Hi,

there is no special syntax available to indicate multiple controls.
This is what you can do:

1. either create a collection (say a List< Control> ) and put the references to the Controls of interest in there, then do a foreach(Control ctrl in myControlList) ctrl.DoSomething();
2. or enumerate all Controls on the Form and test some characteristic, e.g.

foreach(Control ctrl in this.Controls) {
    TextBox tb = ctrl as TextBox;
    if (tb!=null) {
        if (tb.Name.StartsWith("aha")) || tb.Tag!=null) {
            tb.ReadOnly=true;
        }
    }
}


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

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: Changing properties of more than one control at a time? Pin
Xmen Real 21-Feb-09 7:27
professional Xmen Real 21-Feb-09 7:27 
AnswerRe: Changing properties of more than one control at a time? Pin
thrashead21-Feb-09 4:26
thrashead21-Feb-09 4:26 
AnswerRe: Changing properties of more than one control at a time? Pin
PIEBALDconsult21-Feb-09 10:44
mvePIEBALDconsult21-Feb-09 10:44 
AnswerRe: Changing properties of more than one control at a time? Pin
High0ctane22-Feb-09 8:50
High0ctane22-Feb-09 8:50 
QuestionHow to retrieve image from local resource ? Pin
hdv21221-Feb-09 2:01
hdv21221-Feb-09 2:01 
AnswerRe: How to retrieve image from local resource ? Pin
Kristian Sixhøj21-Feb-09 2:07
Kristian Sixhøj21-Feb-09 2:07 
GeneralRe: How to retrieve image from local resource ? Pin
hdv21221-Feb-09 2:51
hdv21221-Feb-09 2:51 
AnswerRe: How to retrieve image from local resource ? Pin
Luc Pattyn21-Feb-09 2:21
sitebuilderLuc Pattyn21-Feb-09 2:21 
GeneralRe: How to retrieve image from local resource ? Pin
hdv21221-Feb-09 2:54
hdv21221-Feb-09 2:54 
AnswerRe: How to retrieve image from local resource ? Pin
Anthony Mushrow21-Feb-09 3:03
professionalAnthony Mushrow21-Feb-09 3:03 
GeneralRe: How to retrieve image from local resource ? Pin
hdv21221-Feb-09 4:44
hdv21221-Feb-09 4:44 
QuestionPlace Form windows at certain position in MDI Application Pin
hardsoft21-Feb-09 1:48
hardsoft21-Feb-09 1:48 
AnswerRe: Place Form windows at certain position in MDI Application Pin
paas21-Feb-09 5:28
paas21-Feb-09 5:28 
QuestionHow determine redirect url Pin
Meysam Mahfouzi21-Feb-09 1:31
Meysam Mahfouzi21-Feb-09 1:31 
QuestionGenerate WM_DROPFILES and send it to a Control Pin
steffen_dec21-Feb-09 0:24
steffen_dec21-Feb-09 0:24 
AnswerRe: Generate WM_DROPFILES and send it to a Control Pin
pipicato18-Oct-11 23:48
pipicato18-Oct-11 23:48 
AnswerRe: Generate WM_DROPFILES and send it to a Control Pin
davidcole30-Sep-13 5:59
davidcole30-Sep-13 5:59 

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.