Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is C# is fully object oriented or not? Pin
Wayne Gaylard5-Mar-14 3:18
professionalWayne Gaylard5-Mar-14 3:18 
GeneralRe: Is C# is fully object oriented or not? Pin
pradeep surya5-Mar-14 7:33
pradeep surya5-Mar-14 7:33 
GeneralRe: Is C# is fully object oriented or not? Pin
Pete O'Hanlon5-Mar-14 7:38
mvePete O'Hanlon5-Mar-14 7:38 
AnswerRe: Is C# is fully object oriented or not? Pin
Pete O'Hanlon5-Mar-14 8:05
mvePete O'Hanlon5-Mar-14 8:05 
QuestionMenu focus Pin
Member 106415403-Mar-14 22:45
Member 106415403-Mar-14 22:45 
QuestionRe: Menu focus Pin
Richard MacCutchan3-Mar-14 23:29
mveRichard MacCutchan3-Mar-14 23:29 
AnswerRe: Menu focus Pin
Bernhard Hiller4-Mar-14 2:11
Bernhard Hiller4-Mar-14 2:11 
QuestionRemove Controls Pin
Zeyad Jalil3-Mar-14 20:20
professionalZeyad Jalil3-Mar-14 20:20 
Hi All,

I have a windows application (Form1) in form one I have 150 Label
and I want to remove this labels using
foreach(Label lbl in this.Controls)
this.controls.remove(lbl);

I need to stop refresh the form, also I use suspendLayout() before removing and resumeLayout after removing but it is still refreshing.

Please help me how to stop the form refresh until remove all controls.

Thank you very much
AnswerRe: Remove Controls Pin
BillWoodruff3-Mar-14 21:39
professionalBillWoodruff3-Mar-14 21:39 
GeneralRe: Remove Controls Pin
Zeyad Jalil3-Mar-14 22:54
professionalZeyad Jalil3-Mar-14 22:54 
AnswerRe: Remove Controls Pin
Simon_Whale3-Mar-14 23:24
Simon_Whale3-Mar-14 23:24 
GeneralRe: Remove Controls Pin
Zeyad Jalil4-Mar-14 0:41
professionalZeyad Jalil4-Mar-14 0:41 
AnswerRe: Remove Controls Pin
OriginalGriff3-Mar-14 23:54
mveOriginalGriff3-Mar-14 23:54 
GeneralRe: Remove Controls Pin
GuyThiebaut4-Mar-14 3:51
professionalGuyThiebaut4-Mar-14 3:51 
GeneralRe: Remove Controls Pin
OriginalGriff4-Mar-14 4:33
mveOriginalGriff4-Mar-14 4:33 
GeneralRe: Remove Controls Pin
BillWoodruff4-Mar-14 14:45
professionalBillWoodruff4-Mar-14 14:45 
AnswerRe: Remove Controls Pin
Dave Kreskowiak4-Mar-14 3:40
mveDave Kreskowiak4-Mar-14 3:40 
AnswerUse a curtain! Pin
Ravi Bhavnani4-Mar-14 4:41
professionalRavi Bhavnani4-Mar-14 4:41 
AnswerRe: Remove Controls Pin
BillWoodruff4-Mar-14 14:57
professionalBillWoodruff4-Mar-14 14:57 
QuestionHow to use the GoF in project? Pin
wmikas3-Mar-14 15:22
wmikas3-Mar-14 15:22 
AnswerRe: How to use the GoF in project? Pin
BillWoodruff3-Mar-14 17:35
professionalBillWoodruff3-Mar-14 17:35 
GeneralRe: How to use the GoF in project? Pin
wmikas4-Mar-14 1:10
wmikas4-Mar-14 1:10 
AnswerRe: How to use the GoF in project? Pin
dan!sh 3-Mar-14 19:40
professional dan!sh 3-Mar-14 19:40 
GeneralRe: How to use the GoF in project? Pin
harold aptroot3-Mar-14 22:35
harold aptroot3-Mar-14 22:35 
AnswerRe: How to use the GoF in project? Pin
gkrannich3-Mar-14 22:58
gkrannich3-Mar-14 22:58 

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.