Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2005

Tip: Looking for answers? Try searching our database.

VS.NET (2.0), UserControl & Dispose

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Dupont - 10 Sep 2005 13:38 GMT
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?

Signature

If you're in a war, instead of throwing a hand grenade at the enemy, throw
one of those small pumpkins. Maybe it'll make everyone think how stupid war
is, and while they are thinking, you can throw a real grenade at them.
Jack Handey.

Cowboy (Gregory A. Beamer) - MVP - 12 Sep 2005 13:53 GMT
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.
Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> VS.NET 2.0 use partial classes and override dispose in the designer class
> file
[quoted text clipped - 3 lines]
>
> Any thoughts?
Lloyd Dupont - 12 Sep 2005 13:59 GMT
Allright I'll give it a go.
As a side note I was speaking desktop/winform application here  ^_^

Signature

If you're in a war, instead of throwing a hand grenade at the enemy, throw
one of those small pumpkins. Maybe it'll make everyone think how stupid war
is, and while they are thinking, you can throw a real grenade at them.
Jack Handey.

> My thoughts:
>
[quoted text clipped - 20 lines]
>>
>> Any thoughts?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.