Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
GeneralPersonalizing Custom Controls Pin
Anonymous31-Jan-03 17:24
Anonymous31-Jan-03 17:24 
GeneralRe: Personalizing Custom Controls Pin
andyharman2-Feb-03 0:32
professionalandyharman2-Feb-03 0:32 
GeneralA question of form ;) Pin
antoine@orchus-tech31-Jan-03 16:07
antoine@orchus-tech31-Jan-03 16:07 
GeneralRe: A question of form ;) Pin
jtmtv1831-Jan-03 17:04
jtmtv1831-Jan-03 17:04 
GeneralRe: A question of form ;) Pin
antoine@orchus-tech1-Feb-03 3:36
antoine@orchus-tech1-Feb-03 3:36 
GeneralRe: A question of form ;) Pin
Stephane Rodriguez.1-Feb-03 3:45
Stephane Rodriguez.1-Feb-03 3:45 
GeneralRe: A question of form ;) Pin
Anonymous1-Feb-03 3:49
Anonymous1-Feb-03 3:49 
GeneralRe: A question of form ;) Pin
Stephane Rodriguez.1-Feb-03 4:25
Stephane Rodriguez.1-Feb-03 4:25 
QuestionToolbar buttons position? Pin
Member 14906931-Jan-03 9:24
Member 14906931-Jan-03 9:24 
AnswerRe: Toolbar buttons position? Pin
Furty31-Jan-03 17:21
Furty31-Jan-03 17:21 
GeneralC# need to create control using UserControl Pin
Vikas Aher31-Jan-03 9:16
Vikas Aher31-Jan-03 9:16 
GeneralRe: C# need to create control using UserControl Pin
Erik Funkenbusch31-Jan-03 10:47
Erik Funkenbusch31-Jan-03 10:47 
GeneralFastest Way to open Pin
jtmtv1831-Jan-03 8:49
jtmtv1831-Jan-03 8:49 
GeneralRe: Fastest Way to open Pin
Daniel Turini31-Jan-03 9:04
Daniel Turini31-Jan-03 9:04 
GeneralRe: Fastest Way to open Pin
jtmtv1831-Jan-03 9:12
jtmtv1831-Jan-03 9:12 
GeneralRe: Fastest Way to open Pin
Mark Sanders31-Jan-03 10:36
Mark Sanders31-Jan-03 10:36 
GeneralRe: Fastest Way to open Pin
jtmtv1831-Jan-03 10:56
jtmtv1831-Jan-03 10:56 
to Mark Sanders :

You create an instance in a using statement to ensure that Dispose is called on the object when the using statement is exited. A using statement can be exited either when the end of the using statement is reached or if, for example, an exception is thrown and control leaves the statement block before the end of the statement.

The object you instantiate must implement the System.IDisposable interface.


<br />
Example<br />
// cs_using_statement.cs<br />
// compile with /reference:System.Drawing.dll<br />
using System.Drawing;<br />
class a<br />
{<br />
   public static void Main()<br />
   {<br />
      using (Font MyFont = new Font("Arial", 10.0f), MyFont2 = new Font("Arial", 10.0f))<br />
      {<br />
         // use MyFont and MyFont2<br />
      }   // compiler will call Dispose on MyFont and MyFont2<br />
<br />
<br />
<br />
<br />

GeneralRe: Fastest Way to open Pin
Mark Sanders31-Jan-03 10:59
Mark Sanders31-Jan-03 10:59 
GeneralRe: Fastest Way to open Pin
leppie31-Jan-03 12:10
leppie31-Jan-03 12:10 
GeneralRe: Fastest Way to open Pin
jtmtv1831-Jan-03 13:53
jtmtv1831-Jan-03 13:53 
GeneralRe: Fastest Way to open Pin
leppie31-Jan-03 14:32
leppie31-Jan-03 14:32 
GeneralRe: Fastest Way to open Pin
jtmtv1831-Jan-03 14:40
jtmtv1831-Jan-03 14:40 
GeneralRe: Fastest Way to open Pin
leppie31-Jan-03 22:53
leppie31-Jan-03 22:53 
GeneralDIME and large files Pin
Ingram Leedy31-Jan-03 8:40
Ingram Leedy31-Jan-03 8:40 
GeneralC# Inherited Textbox Control Pin
Sovman31-Jan-03 7:32
Sovman31-Jan-03 7:32 

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.