Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to load form with many controls Smooth on Winform ? Pin
Manfred Rudolf Bihy12-Apr-11 3:19
professionalManfred Rudolf Bihy12-Apr-11 3:19 
GeneralRe: how to load form with many controls Smooth on Winform ? Pin
wizardzz12-Apr-11 6:24
wizardzz12-Apr-11 6:24 
AnswerRe: how to load form with many controls Smooth on Winform ? Pin
Manfred Rudolf Bihy12-Apr-11 3:21
professionalManfred Rudolf Bihy12-Apr-11 3:21 
AnswerRe: how to load form with many controls Smooth on Winform ? Pin
wizardzz12-Apr-11 6:23
wizardzz12-Apr-11 6:23 
QuestionHow to check items in a Collection contains common property? Pin
John-ph12-Apr-11 0:27
John-ph12-Apr-11 0:27 
AnswerRe: How to check items in a Collection contains common property? Pin
OriginalGriff12-Apr-11 0:38
mveOriginalGriff12-Apr-11 0:38 
GeneralMessage Removed Pin
12-Apr-11 1:10
John-ph12-Apr-11 1:10 
GeneralRe: How to check items in a Collection contains common property? Pin
OriginalGriff12-Apr-11 1:31
mveOriginalGriff12-Apr-11 1:31 
Add a break:
textBold.Checked = true;
foreach (Item item in Items)
{
    if (item.FontWeight == FontWeights.Normal)
    {
        textBold.Checked = false;
        break;
    }
}
As I said, you could do it with Linq:
int normal = Items.Count(item => item.FontWeight == FontWeights.Normal);

Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

Manfred R. Bihy: "Looks as if OP is learning resistant."

GeneralRe: How to check items in a Collection contains common property? Pin
John-ph12-Apr-11 3:48
John-ph12-Apr-11 3:48 
AnswerPlease don't remove messages. Pin
Pete O'Hanlon12-Apr-11 1:52
mvePete O'Hanlon12-Apr-11 1:52 
GeneralRe: Please don't remove messages. Pin
Luc Pattyn12-Apr-11 2:41
sitebuilderLuc Pattyn12-Apr-11 2:41 
GeneralRe: Please don't remove messages. Pin
Pete O'Hanlon12-Apr-11 3:01
mvePete O'Hanlon12-Apr-11 3:01 
GeneralRe: Please don't remove messages. Pin
OriginalGriff12-Apr-11 8:29
mveOriginalGriff12-Apr-11 8:29 
GeneralRe: Please don't remove messages. Pin
Luc Pattyn12-Apr-11 9:46
sitebuilderLuc Pattyn12-Apr-11 9:46 
GeneralRe: Please don't remove messages. Pin
OriginalGriff12-Apr-11 9:56
mveOriginalGriff12-Apr-11 9:56 
GeneralRe: Please don't remove messages. Pin
John-ph12-Apr-11 3:43
John-ph12-Apr-11 3:43 
QuestionOnline Database Pin
nEar_mO11-Apr-11 23:05
nEar_mO11-Apr-11 23:05 
AnswerRe: Online Database Pin
OriginalGriff11-Apr-11 23:52
mveOriginalGriff11-Apr-11 23:52 
AnswerRe: Online Database Pin
Eddy Vluggen12-Apr-11 0:08
professionalEddy Vluggen12-Apr-11 0:08 
GeneralRe: Online Database Pin
nEar_mO12-Apr-11 17:38
nEar_mO12-Apr-11 17:38 
AnswerRe: Online Database Pin
thatraja12-Apr-11 18:11
professionalthatraja12-Apr-11 18:11 
AnswerRe: Online Database Pin
Eddy Vluggen12-Apr-11 20:56
professionalEddy Vluggen12-Apr-11 20:56 
AnswerRe: Online Database Pin
PIEBALDconsult12-Apr-11 2:48
mvePIEBALDconsult12-Apr-11 2:48 
QuestionNetwork Transaction Pin
nEar_mO11-Apr-11 22:59
nEar_mO11-Apr-11 22:59 
AnswerRe: Network Transaction Pin
OriginalGriff11-Apr-11 23:53
mveOriginalGriff11-Apr-11 23:53 

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.