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

C#

 
QuestionNew Project Dialog Pin
Rahul.RK8-Jan-07 2:04
Rahul.RK8-Jan-07 2:04 
AnswerRe: New Project Dialog Pin
Mircea Puiu8-Jan-07 3:29
Mircea Puiu8-Jan-07 3:29 
QuestionElegant way to develop a chronometer Pin
AlexB478-Jan-07 1:47
AlexB478-Jan-07 1:47 
AnswerRe: Elegant way to develop a chronometer Pin
Ravi Bhavnani8-Jan-07 2:48
professionalRavi Bhavnani8-Jan-07 2:48 
GeneralRe: Elegant way to develop a chronometer Pin
AlexB478-Jan-07 2:54
AlexB478-Jan-07 2:54 
QuestionHow to dispose a class Pin
Yustme8-Jan-07 0:14
Yustme8-Jan-07 0:14 
AnswerRe: How to dispose a class Pin
Martin#8-Jan-07 0:23
Martin#8-Jan-07 0:23 
AnswerRe: How to dispose a class Pin
Pete O'Hanlon8-Jan-07 0:30
mvePete O'Hanlon8-Jan-07 0:30 
If the WriteToDoc class has a dispose method associated with it, you could do the following:

using (WriteToDoc writeToDoc = new WriteToDoc())
{
}

Dispose is automatically called when the execution block finishes.

If you don't have a Dispose method, just call writeToDoc = null to set it to a null value. Note that this isn't necessary because the garbage collector will pick it up some time after the variable goes out of scope.


the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer

Deja View - the feeling that you've seen this post before.

GeneralRe: How to dispose a class Pin
Yustme8-Jan-07 0:48
Yustme8-Jan-07 0:48 
GeneralRe: How to dispose a class Pin
Guffa8-Jan-07 1:00
Guffa8-Jan-07 1:00 
GeneralRe: How to dispose a class Pin
Yustme8-Jan-07 1:03
Yustme8-Jan-07 1:03 
GeneralRe: How to dispose a class Pin
Scott Dorman8-Jan-07 17:12
professionalScott Dorman8-Jan-07 17:12 
GeneralRe: How to dispose a class Pin
Not Active8-Jan-07 2:36
mentorNot Active8-Jan-07 2:36 
GeneralRe: How to dispose a class Pin
Mircea Puiu8-Jan-07 3:39
Mircea Puiu8-Jan-07 3:39 
AnswerRe: How to dispose a class Pin
Guffa8-Jan-07 4:10
Guffa8-Jan-07 4:10 
GeneralRe: How to dispose a class Pin
Not Active8-Jan-07 4:15
mentorNot Active8-Jan-07 4:15 
GeneralRe: How to dispose a class Pin
Pete O'Hanlon9-Jan-07 3:33
mvePete O'Hanlon9-Jan-07 3:33 
GeneralRe: How to dispose a class Pin
Scott Dorman8-Jan-07 17:16
professionalScott Dorman8-Jan-07 17:16 
QuestionRowSource or Datasource in ComboBox Pin
phantanagu7-Jan-07 22:39
phantanagu7-Jan-07 22:39 
AnswerRe: RowSource or Datasource in ComboBox Pin
rizgar8-Jan-07 1:54
rizgar8-Jan-07 1:54 
QuestionHelp needed for Displaying Notification Icon Pin
Exelioindia7-Jan-07 22:37
Exelioindia7-Jan-07 22:37 
AnswerRe: Help needed for Displaying Notification Icon Pin
testy_proconsul7-Jan-07 23:18
testy_proconsul7-Jan-07 23:18 
GeneralRe: Help needed for Displaying Notification Icon Pin
Cormac M Redmond8-Jan-07 1:12
Cormac M Redmond8-Jan-07 1:12 
GeneralRe: Help needed for Displaying Notification Icon Pin
Exelioindia8-Jan-07 17:23
Exelioindia8-Jan-07 17:23 
AnswerRe: Help needed for Displaying Notification Icon Pin
Ravi Bhavnani8-Jan-07 2:50
professionalRavi Bhavnani8-Jan-07 2:50 

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.