Hello
It's strange for me, but how did you manage to mess ASP.NET application with
Win Form?
You are using "using" to add new namespaces. Also you can use the keyword
with disposable objects. Something like this:
using ( Pen pen = new Pen( ..) )
{
}
So, the pen will be automatically disposed, when you will out of the "using"
scope.
Inheritance is used for classes' inheritance, when you want to create a new
class on the base of existing one inheriting its functionality.
--
With best regards,
Andrew
http://www.codeproject.com/script/pr...asp?id=1181072
"Jason Huang" <Ja************@hotmail.com> wrote in message
news:OP**************@TK2MSFTNGP10.phx.gbl...
Hi,
In ASP.Net C# Windows Form, we have some lines which starts "using".
I am thinking when do I use a "using", and when should I use the inherit.
Any help will be appreciated.
Jason