Click here to Skip to main content
15,899,937 members
Home / Discussions / C#
   

C#

 
AnswerRe: Days until next birthday Pin
Guffa27-Jul-08 2:59
Guffa27-Jul-08 2:59 
QuestionExe Control DLL Pin
nedracix26-Jul-08 16:20
nedracix26-Jul-08 16:20 
AnswerRe: Exe Control DLL Pin
Paul Conrad26-Jul-08 17:55
professionalPaul Conrad26-Jul-08 17:55 
QuestionWhere is HttpUtility.HtmlDecode ? Pin
Mohammad Dayyan26-Jul-08 12:06
Mohammad Dayyan26-Jul-08 12:06 
AnswerRe: Where is HttpUtility.HtmlDecode ? Pin
Lutosław26-Jul-08 12:22
Lutosław26-Jul-08 12:22 
GeneralRe: Where is HttpUtility.HtmlDecode ? Pin
Mohammad Dayyan26-Jul-08 12:28
Mohammad Dayyan26-Jul-08 12:28 
Questioncheckedlistbox binding Pin
bfis10813726-Jul-08 10:45
bfis10813726-Jul-08 10:45 
Questioncouldn't remove controls [modified] Pin
netJP12L26-Jul-08 9:54
netJP12L26-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
Mark Salsbery26-Jul-08 10:08 
GeneralRe: couldn't remove controls Pin
Lutosław26-Jul-08 12:01
Lutosław26-Jul-08 12:01 
GeneralRe: couldn't remove controls Pin
Mark Salsbery26-Jul-08 12:22
Mark Salsbery26-Jul-08 12:22 
GeneralRe: couldn't remove controls Pin
Lutosław26-Jul-08 12:46
Lutosław26-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
netJP12L26-Jul-08 10:46 
GeneralRe: couldn't remove controls Pin
Mark Salsbery26-Jul-08 10:51
Mark 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
bfis10813726-Jul-08 8:43 
QuestionCounting duplicate entries in an ArrayList Pin
Jacob Dixon26-Jul-08 7:21
Jacob 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
mvePIEBALDconsult26-Jul-08 8:20 
GeneralRe: Counting duplicate entries in an ArrayList Pin
Jacob Dixon26-Jul-08 8:37
Jacob Dixon26-Jul-08 8:37 
GeneralRe: Counting duplicate entries in an ArrayList Pin
PIEBALDconsult26-Jul-08 11:18
mvePIEBALDconsult26-Jul-08 11:18 
GeneralRe: Counting duplicate entries in an ArrayList Pin
Jacob Dixon26-Jul-08 12:53
Jacob Dixon26-Jul-08 12:53 
GeneralRe: Counting duplicate entries in an ArrayList Pin
PIEBALDconsult26-Jul-08 18:04
mvePIEBALDconsult26-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.