Click here to Skip to main content
14,546,017 members
   

C#

 
AnswerRe: Days until next birthday Pin
Guffa27-Jul-08 2:59
MemberGuffa27-Jul-08 2:59 
QuestionExe Control DLL Pin
nedracix26-Jul-08 16:20
Membernedracix26-Jul-08 16:20 
AnswerRe: Exe Control DLL Pin
Paul Conrad26-Jul-08 17:55
subeditorPaul Conrad26-Jul-08 17:55 
QuestionWhere is HttpUtility.HtmlDecode ? Pin
Mohammad Dayyan26-Jul-08 12:06
MemberMohammad Dayyan26-Jul-08 12:06 
AnswerRe: Where is HttpUtility.HtmlDecode ? Pin
Jacek Gajek26-Jul-08 12:22
MemberJacek Gajek26-Jul-08 12:22 
GeneralRe: Where is HttpUtility.HtmlDecode ? Pin
Mohammad Dayyan26-Jul-08 12:28
MemberMohammad Dayyan26-Jul-08 12:28 
Questioncheckedlistbox binding Pin
bfis10813726-Jul-08 10:45
Memberbfis10813726-Jul-08 10:45 
Questioncouldn't remove controls [modified] Pin
netJP12L26-Jul-08 9:54
MembernetJP12L26-Jul-08 9:54 
I have windows form where I am adding control at run time but I couldn't remove them all. Some of them get removed but some stays there. I have spent already 4 hours nothing making sense why I couldn't simply remove controls from the form.


this.Controls(btn);---> this is how iam adding Controls


foreach (Control c in this.Controls)---> this is how am removing-->no achievement
{
this.Controls.Remove(c);
}
=========
but if copy all the controls to an arraylist and then it works. What a nosense is this is C#

ArrayList a = new ArrayList();
foreach (Control c in this.Controls )
{
a.Add(c);
}
foreach (Control cc in a)
{
this.Controls.Remove(cc);
}

modified on Saturday, July 26, 2008 4:01 PM

AnswerRe: couldn't remove controls Pin
Mark Salsbery26-Jul-08 10:08
MemberMark Salsbery26-Jul-08 10:08 
GeneralRe: couldn't remove controls Pin
Jacek Gajek26-Jul-08 12:01
MemberJacek Gajek26-Jul-08 12:01 
GeneralRe: couldn't remove controls Pin
Mark Salsbery26-Jul-08 12:22
MemberMark Salsbery26-Jul-08 12:22 
GeneralRe: couldn't remove controls Pin
Jacek Gajek26-Jul-08 12:46
MemberJacek Gajek26-Jul-08 12:46 
AnswerRe: couldn't remove controls Pin
Luc Pattyn26-Jul-08 10:21
sitebuilderLuc Pattyn26-Jul-08 10:21 
GeneralRe: couldn't remove controls Pin
netJP12L26-Jul-08 10:46
MembernetJP12L26-Jul-08 10:46 
GeneralRe: couldn't remove controls Pin
Mark Salsbery26-Jul-08 10:51
MemberMark Salsbery26-Jul-08 10:51 
GeneralRe: couldn't remove controls Pin
Luc Pattyn26-Jul-08 10:54
sitebuilderLuc Pattyn26-Jul-08 10:54 
GeneralRe: couldn't remove controls Pin
Luc Pattyn26-Jul-08 12:59
sitebuilderLuc Pattyn26-Jul-08 12:59 
Questiondatagrid column binding Pin
bfis10813726-Jul-08 8:43
Memberbfis10813726-Jul-08 8:43 
QuestionCounting duplicate entries in an ArrayList Pin
Jacob Dixon26-Jul-08 7:21
MemberJacob Dixon26-Jul-08 7:21 
AnswerRe: Counting duplicate entries in an ArrayList Pin
Luc Pattyn26-Jul-08 8:10
sitebuilderLuc Pattyn26-Jul-08 8:10 
AnswerRe: Counting duplicate entries in an ArrayList Pin
PIEBALDconsult26-Jul-08 8:20
professionalPIEBALDconsult26-Jul-08 8:20 
GeneralRe: Counting duplicate entries in an ArrayList Pin
Jacob Dixon26-Jul-08 8:37
MemberJacob Dixon26-Jul-08 8:37 
GeneralRe: Counting duplicate entries in an ArrayList Pin
PIEBALDconsult26-Jul-08 11:18
professionalPIEBALDconsult26-Jul-08 11:18 
GeneralRe: Counting duplicate entries in an ArrayList Pin
Jacob Dixon26-Jul-08 12:53
MemberJacob Dixon26-Jul-08 12:53 
GeneralRe: Counting duplicate entries in an ArrayList Pin
PIEBALDconsult26-Jul-08 18:04
professionalPIEBALDconsult26-Jul-08 18:04 

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.