VS.NET (2.0), UserControl & Dispose

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

VS.NET 2.0 use partial classes and override dispose in the designer class
file
Could I edit the dispose method there?
Because I need to put some stuff in my UserControl's Dispose method but it
would be quite a hassle if VS.NET remove it without me being aware of.....

Any thoughts?
 
My thoughts:

If you are worried about disposing a control, put your Dispose() in the
Control. If not, you will force every page that uses this control to dispose.
Not a good practice.

Microsoft has done a pretty good job of labeling the stuff you should not
touch. As long as you are not playing in the playground they set aside, hack
at it to your heart's content.

NOTE: I have not played with Dispose() in a Page in .NET 2.0 (I just have
not had the need arise), but the IDE is far more forgiving in 2.0.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Allright I'll give it a go.
As a side note I was speaking desktop/winform application here ^_^
 
Back
Top