Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to add numbers to form with specified position Pin
Henry Minute13-May-09 14:42
Henry Minute13-May-09 14:42 
QuestionHow to stop an Event Pin
Payam Rastogi13-May-09 10:11
Payam Rastogi13-May-09 10:11 
AnswerRe: How to stop an Event Pin
Dave Kreskowiak13-May-09 10:47
mveDave Kreskowiak13-May-09 10:47 
GeneralRe: How to stop an Event Pin
PIEBALDconsult13-May-09 14:59
mvePIEBALDconsult13-May-09 14:59 
GeneralRe: How to stop an Event Pin
Luc Pattyn13-May-09 15:39
sitebuilderLuc Pattyn13-May-09 15:39 
GeneralRe: How to stop an Event Pin
Dave Kreskowiak13-May-09 19:12
mveDave Kreskowiak13-May-09 19:12 
GeneralRe: How to stop an Event Pin
Payam Rastogi14-May-09 11:05
Payam Rastogi14-May-09 11:05 
GeneralRe: How to stop an Event Pin
Dave Kreskowiak14-May-09 17:54
mveDave Kreskowiak14-May-09 17:54 
Payam Rastogi wrote:
I used this code but it is still showing error highlighting fThread.Interrupt() ---Object reference not set to an instance of an object.


Of course! fThread only exists inside your button43 Client handler. The variable can't be seen anywhere else in your code.

And why are you calling Interrupt?? Inside your looping thread code you would check for a flag that says it should stop. You shouldn't be abruptly stopping the thread before it can do any cleanup work it needs to.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




AnswerRe: How to stop an Event Pin
DaveyM6913-May-09 10:51
professionalDaveyM6913-May-09 10:51 
QuestionSimple Interest Problem Pin
ctreed72813-May-09 10:05
ctreed72813-May-09 10:05 
AnswerRe: Simple Interest Problem Pin
Luc Pattyn13-May-09 10:12
sitebuilderLuc Pattyn13-May-09 10:12 
AnswerRe: Simple Interest Problem Pin
Christian Graus13-May-09 11:20
protectorChristian Graus13-May-09 11:20 
QuestionForce CG Pin
Jammer13-May-09 9:43
Jammer13-May-09 9:43 
AnswerRe: Force CG Pin
Dave Kreskowiak13-May-09 9:55
mveDave Kreskowiak13-May-09 9:55 
GeneralRe: Force CG Pin
Jammer13-May-09 10:12
Jammer13-May-09 10:12 
GeneralRe: Force CG Pin
Dave Kreskowiak13-May-09 10:44
mveDave Kreskowiak13-May-09 10:44 
GeneralRe: Force CG Pin
Jammer13-May-09 10:49
Jammer13-May-09 10:49 
GeneralRe: Force CG Pin
Christian Graus13-May-09 11:18
protectorChristian Graus13-May-09 11:18 
GeneralRe: Force CG Pin
Dave Kreskowiak13-May-09 14:24
mveDave Kreskowiak13-May-09 14:24 
AnswerRe: Force CG Pin
Christian Graus13-May-09 11:15
protectorChristian Graus13-May-09 11:15 
GeneralRe: Force CG Pin
Jammer13-May-09 11:23
Jammer13-May-09 11:23 
GeneralRe: Force CG Pin
Christian Graus13-May-09 11:25
protectorChristian Graus13-May-09 11:25 
GeneralRe: Force CG Pin
Jammer13-May-09 11:41
Jammer13-May-09 11:41 
Questionhow to retrieve seconds, minutes and hours out of timer Pin
Aljaz11113-May-09 9:39
Aljaz11113-May-09 9:39 
AnswerRe: how to retrieve seconds, minutes and hours out of timer Pin
OriginalGriff13-May-09 9:52
mveOriginalGriff13-May-09 9:52 

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.