dispose

  • Thread starter Thread starter null
  • Start date Start date
N

null

Hi

I was wondering one thing when it comes to fonts and Dispose. If I
have the following code:

this.Font = new Font(...);
//-- is this following necessary or is it done automatically?
this.Font.Dispose();

this.Font = new Font(...);

tia
 
Hi

I was wondering one thing when it comes to fonts and Dispose. If I
have the following code:

this.Font = new Font(...);
//-- is this following necessary or is it done automatically?
this.Font.Dispose();

this.Font = new Font(...);

tia

It's necessary.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top