Click here to Skip to main content
15,884,388 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerStop. Desist. Leave now. Pin
Pete O'Hanlon26-May-09 3:08
mvePete O'Hanlon26-May-09 3:08 
Questiondoes .net Framework(2.0 and 3.5) Supports Robotics language VPL Pin
dewana26726-May-09 0:58
dewana26726-May-09 0:58 
AnswerRe: does .net Framework(2.0 and 3.5) Supports Robotics language VPL Pin
Dave Kreskowiak26-May-09 4:16
mveDave Kreskowiak26-May-09 4:16 
QuestionLogout code in C# Pin
manjusha s26-May-09 0:39
manjusha s26-May-09 0:39 
AnswerRe: Logout code in C# Pin
annathor27-May-09 0:57
annathor27-May-09 0:57 
QuestionLogout code in C# Pin
manjusha s26-May-09 0:23
manjusha s26-May-09 0:23 
AnswerRe: Logout code in C# Pin
Henry Minute26-May-09 0:26
Henry Minute26-May-09 0:26 
QuestionForm Disposal and Null Containers Pin
Tristan Rhodes26-May-09 0:14
Tristan Rhodes26-May-09 0:14 
Hi Guys,

I'm trying to get my forms to clean up after themselves when i dispose them. The designer builds all the lovely disposal pattern stuff, with the body:

<br />
            if (disposing && (components != null))<br />
            {<br />
                components.Dispose();<br />
            }<br />
            base.Dispose(disposing);<br />


Which is all well and good, but as i add components to the designer, i would assume they would be placed in a container and cleaned up when the form disposes, however, the container is always null, and hence the dispose is never called.

Because of this my background worker keeps running and my underlying win32 api calls are never closed down.

While i can (and will) do this the manual way, is there any way to have the designer wire up that logic for me?

Regards

Tris

-------------------------------

Carrier Bags - 21st Century Tumbleweed.

AnswerRe: Form Disposal and Null Containers Pin
Henry Minute26-May-09 0:33
Henry Minute26-May-09 0:33 
GeneralRe: Form Disposal and Null Containers Pin
Tristan Rhodes26-May-09 1:29
Tristan Rhodes26-May-09 1:29 
GeneralRe: Form Disposal and Null Containers Pin
Henry Minute26-May-09 1:34
Henry Minute26-May-09 1:34 
GeneralRe: Form Disposal and Null Containers Pin
Tristan Rhodes26-May-09 3:31
Tristan Rhodes26-May-09 3:31 
GeneralRe: Form Disposal and Null Containers Pin
Pete O'Hanlon26-May-09 4:24
mvePete O'Hanlon26-May-09 4:24 
GeneralRe: Form Disposal and Null Containers Pin
Tristan Rhodes26-May-09 23:49
Tristan Rhodes26-May-09 23:49 
Questionmultiplication of columns Pin
manjusha s26-May-09 0:01
manjusha s26-May-09 0:01 
AnswerRe: multiplication of columns Pin
Henry Minute26-May-09 0:20
Henry Minute26-May-09 0:20 
GeneralRe: multiplication of columns Pin
manjusha s26-May-09 0:35
manjusha s26-May-09 0:35 
QuestionSql Query Pin
srinisiv25-May-09 23:05
srinisiv25-May-09 23:05 
AnswerRe: Sql Query Pin
Pete O'Hanlon25-May-09 23:46
mvePete O'Hanlon25-May-09 23:46 
GeneralRe: Sql Query Pin
srinisiv26-May-09 0:14
srinisiv26-May-09 0:14 
GeneralRe: Sql Query Pin
Pete O'Hanlon26-May-09 0:31
mvePete O'Hanlon26-May-09 0:31 
GeneralRe: Sql Query Pin
srinisiv26-May-09 0:49
srinisiv26-May-09 0:49 
QuestionInsert query Pin
manjusha s25-May-09 21:24
manjusha s25-May-09 21:24 
AnswerRe: Insert query Pin
Pete O'Hanlon25-May-09 22:00
mvePete O'Hanlon25-May-09 22:00 
QuestionHOW TO DISTINGUISE POINTS OF LINES AND CURVES ??? Pin
TARAK NATH ROY25-May-09 1:45
TARAK NATH ROY25-May-09 1:45 

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.