Click here to Skip to main content
15,901,284 members
Home / Discussions / C#
   

C#

 
Generalconverting string value to money data type Pin
Qamarwis23-Feb-04 0:37
Qamarwis23-Feb-04 0:37 
GeneralRe: converting string value to money data type Pin
Werdna23-Feb-04 4:07
Werdna23-Feb-04 4:07 
GeneralRe: converting string value to money data type Pin
Werdna23-Feb-04 4:08
Werdna23-Feb-04 4:08 
QuestionHow to mute audio? Pin
mdundek22-Feb-04 23:56
mdundek22-Feb-04 23:56 
AnswerRe: How to mute audio? Pin
Heath Stewart23-Feb-04 6:43
protectorHeath Stewart23-Feb-04 6:43 
GeneralColorPalette class Pin
Stephane David22-Feb-04 22:31
Stephane David22-Feb-04 22:31 
GeneralRe: ColorPalette class Pin
Heath Stewart23-Feb-04 9:20
protectorHeath Stewart23-Feb-04 9:20 
GeneralDisposing of Dynamic Controls Pin
Andy H22-Feb-04 22:15
Andy H22-Feb-04 22:15 
I have an application that populates a PictureBox control with an Image and then dynamically adds controls to the form on the top of the PictureBox. The PictureBox is the Container of all the dynamic controls. The problem I have is disposing of these dynamic controls. When I run the following code it dosposes of some of the dynamic controls but not all of them:

foreach (Control control in this.pictureBox1.Controls)<br />
{<br />
   this.pictureBox1.Controls.Remove (control);<br />
   control.Dispose ();<br />
}

Any ideas why it doesn't get rid of them all?

When they were created they were all added to the pictureBox1.Cotrols collection.
GeneralRemove text selection in an RTB Pin
Fleischen22-Feb-04 21:02
Fleischen22-Feb-04 21:02 
GeneraldirectX in C# Pin
waliop22-Feb-04 20:11
waliop22-Feb-04 20:11 
GeneralRe: directX in C# Pin
Chen Pang22-Feb-04 22:07
Chen Pang22-Feb-04 22:07 
Generallisting bitmap on ListView Pin
azusakt22-Feb-04 19:01
azusakt22-Feb-04 19:01 
GeneralRe: listing bitmap on ListView Pin
Werdna23-Feb-04 4:14
Werdna23-Feb-04 4:14 
QuestionHow to change Size of Array Pin
god4k22-Feb-04 18:23
god4k22-Feb-04 18:23 
AnswerRe: How to change Size of Array Pin
Tom Larsen22-Feb-04 18:28
Tom Larsen22-Feb-04 18:28 
AnswerRe: How to change Size of Array Pin
Corinna John22-Feb-04 20:28
Corinna John22-Feb-04 20:28 
GeneralRe: How to change Size of Array Pin
CWIZO23-Feb-04 2:54
CWIZO23-Feb-04 2:54 
AnswerRe: How to change Size of Array Pin
turbochimp25-Feb-04 11:21
turbochimp25-Feb-04 11:21 
QuestionSocketPermission usage? Pin
Dilys22-Feb-04 16:58
Dilys22-Feb-04 16:58 
GeneralOne question about drawing rectangles. Pin
weihua99@263.net22-Feb-04 13:58
weihua99@263.net22-Feb-04 13:58 
GeneralRe: One question about drawing rectangles. Pin
Corinna John22-Feb-04 20:43
Corinna John22-Feb-04 20:43 
GeneralMonitoring Activation Count Pin
kimsangwoo22-Feb-04 13:50
kimsangwoo22-Feb-04 13:50 
Questionhow to find out how much graphics card memory and how much RAM I have? Pin
SIDDHARTH_JAIN22-Feb-04 10:01
SIDDHARTH_JAIN22-Feb-04 10:01 
AnswerRe: how to find out how much graphics card memory and how much RAM I have? Pin
Mazdak22-Feb-04 11:19
Mazdak22-Feb-04 11:19 
GeneralListView with Windows Control Library Pin
Snowjim22-Feb-04 6:51
Snowjim22-Feb-04 6:51 

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.