Click here to Skip to main content
15,877,103 members
Home / Discussions / C#
   

C#

 
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 
QuestionIs the control is design mode? Pin
Nnamdi Onyeyiri31-Jan-03 6:58
Nnamdi Onyeyiri31-Jan-03 6:58 
AnswerRe: Is the control is design mode? Pin
leppie31-Jan-03 8:48
leppie31-Jan-03 8:48 
GeneralRe: Is the control is design mode? Pin
Nnamdi Onyeyiri31-Jan-03 23:44
Nnamdi Onyeyiri31-Jan-03 23:44 
QuestionHow to convert Pin
zees31-Jan-03 5:07
zees31-Jan-03 5:07 
AnswerRe: How to convert Pin
Richard Deeming31-Jan-03 5:23
mveRichard Deeming31-Jan-03 5:23 
GeneralFully managed HTML validator/reformator Pin
Chris Maunder31-Jan-03 4:34
cofounderChris Maunder31-Jan-03 4:34 
GeneralRe: Fully managed HTML validator/reformator Pin
TigerNinja_31-Jan-03 5:00
TigerNinja_31-Jan-03 5:00 
GeneralRe: Fully managed HTML validator/reformator Pin
Chris Maunder31-Jan-03 7:54
cofounderChris Maunder31-Jan-03 7:54 
GeneralRe: Fully managed HTML validator/reformator Pin
Richard Deeming31-Jan-03 5:30
mveRichard Deeming31-Jan-03 5:30 

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.