Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
Questionshare Pin
ellllllllie24-Nov-08 1:21
ellllllllie24-Nov-08 1:21 
AnswerRe: share Pin
Le centriste24-Nov-08 2:10
Le centriste24-Nov-08 2:10 
QuestionRemove instance Pin
RishiKasnia24-Nov-08 1:00
RishiKasnia24-Nov-08 1:00 
AnswerRe: Remove instance Pin
Pedram Behroozi24-Nov-08 1:15
Pedram Behroozi24-Nov-08 1:15 
GeneralRe: Remove instance Pin
RishiKasnia24-Nov-08 1:41
RishiKasnia24-Nov-08 1:41 
GeneralRe: Remove instance Pin
Pedram Behroozi24-Nov-08 1:54
Pedram Behroozi24-Nov-08 1:54 
GeneralRe: Remove instance Pin
RishiKasnia24-Nov-08 1:58
RishiKasnia24-Nov-08 1:58 
GeneralRe: Remove instance Pin
Bijesh24-Nov-08 3:02
Bijesh24-Nov-08 3:02 
Removing instances from memory is the Garbage Collector's job. You don't have much control over when that gets done. But you can do cleanups inside the Dispose method. So basically you remove your event handlers in the Dispose method, and simply calle the Dispose method when you remove your control from the panel. (Typically Dispose is called for all the controls in a Form from within the Close method of the Form).

Also if you control is hanging around in memory long after you have removed it, it could mean that you have some references to it somewhere in your program.
AnswerRe: Remove instance Pin
Simon P Stevens24-Nov-08 3:05
Simon P Stevens24-Nov-08 3:05 
GeneralRe: Remove instance Pin
RishiKasnia24-Nov-08 16:43
RishiKasnia24-Nov-08 16:43 
QuestionSetting Socket.ReceiveBufferSize Pin
HosamAly24-Nov-08 0:40
HosamAly24-Nov-08 0:40 
AnswerRe: Setting Socket.ReceiveBufferSize Pin
Mark Salsbery24-Nov-08 7:14
Mark Salsbery24-Nov-08 7:14 
GeneralRe: Setting Socket.ReceiveBufferSize Pin
HosamAly24-Nov-08 20:43
HosamAly24-Nov-08 20:43 
GeneralRe: Setting Socket.ReceiveBufferSize Pin
Mark Salsbery25-Nov-08 5:42
Mark Salsbery25-Nov-08 5:42 
Questionsmart card Pin
ellllllllie24-Nov-08 0:34
ellllllllie24-Nov-08 0:34 
QuestionA blocking operation was interrupted by a call to WSACancelBlockingCall Pin
Gareth H24-Nov-08 0:27
Gareth H24-Nov-08 0:27 
AnswerRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
led mike24-Nov-08 5:02
led mike24-Nov-08 5:02 
GeneralRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
Gareth H24-Nov-08 5:37
Gareth H24-Nov-08 5:37 
GeneralRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
led mike24-Nov-08 5:56
led mike24-Nov-08 5:56 
GeneralRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
Gareth H24-Nov-08 7:24
Gareth H24-Nov-08 7:24 
QuestionCapturing SessionEnding without Main form Pin
__DanC__23-Nov-08 23:21
__DanC__23-Nov-08 23:21 
QuestionThis is about material. I am Mongolia. I don't speak english Pin
Tsodgorhuu23-Nov-08 22:27
Tsodgorhuu23-Nov-08 22:27 
AnswerRe: This is about material. I am Mongolia. I don't speak english Pin
Simon P Stevens23-Nov-08 22:36
Simon P Stevens23-Nov-08 22:36 
GeneralRe: This is about material. I am Mongolia. I don't speak english Pin
Thomas Weller23-Nov-08 22:41
Thomas Weller23-Nov-08 22:41 
GeneralHelp me Pin
Tsodgorhuu23-Nov-08 22:42
Tsodgorhuu23-Nov-08 22:42 

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.