Click here to Skip to main content
15,921,884 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to search string in different file and comment it Pin
WhiteGirl2329-Aug-07 22:49
WhiteGirl2329-Aug-07 22:49 
QuestionStart reading from end of file Pin
TheJudeDude29-Aug-07 18:09
TheJudeDude29-Aug-07 18:09 
AnswerRe: Start reading from end of file Pin
Michael Sync29-Aug-07 19:53
Michael Sync29-Aug-07 19:53 
QuestionThreaded Form Pin
xfitr229-Aug-07 16:30
xfitr229-Aug-07 16:30 
AnswerRe: Threaded Form Pin
Michael Sync29-Aug-07 17:22
Michael Sync29-Aug-07 17:22 
GeneralRe: Threaded Form Pin
xfitr229-Aug-07 17:35
xfitr229-Aug-07 17:35 
GeneralRe: Threaded Form Pin
Michael Sync29-Aug-07 18:05
Michael Sync29-Aug-07 18:05 
GeneralRe: Threaded Form Pin
Spacix One30-Aug-07 3:51
Spacix One30-Aug-07 3:51 
you might be able to use .ActiveForm.Close() if you call it from the same thread which generated(showed) the form, else you'll get a "cross-thread exception"

Is this form some type of information "pop-up" ? if so you could just call .Show() and then set a timer to call the .ActiveFrom.Close() on it. Also keep your current if you click on it and then click away it closes.
This would be a better user experience, as they don't have to keep clicking away close the dialog.



another problem is that you are calling abort() to your thread and not allowing it to exit cleanly

All threads should include a method to stop their execution loop, .abort() is to throw an exception on a soft-locked thread. A situation where you know that it should have quit already but it is stuck in some loop.

The exception doesn't allow the thread to finish its task. Think what will happen if a thread was in the middle of saving some file that was only 1/2 written when it was aborted.




-Spacix
All your skynet questions[^] belong to solved

Questionhow to backup sql database from c#2005 Pin
tech-progg29-Aug-07 16:30
tech-progg29-Aug-07 16:30 
AnswerRe: how to backup sql database from c#2005 Pin
\laddie31-Aug-07 1:05
\laddie31-Aug-07 1:05 
GeneralRe: how to backup sql database from c#2005 Pin
tech-progg2-Sep-07 16:30
tech-progg2-Sep-07 16:30 
QuestionInsert statment for multiple tables Pin
falles0129-Aug-07 15:49
falles0129-Aug-07 15:49 
AnswerRe: Insert statment for multiple tables Pin
tech-progg29-Aug-07 16:33
tech-progg29-Aug-07 16:33 
GeneralRe: Insert statment for multiple tables Pin
falles0129-Aug-07 16:40
falles0129-Aug-07 16:40 
GeneralRe: Insert statment for multiple tables Pin
Not Active29-Aug-07 17:35
mentorNot Active29-Aug-07 17:35 
AnswerRe: Insert statment for multiple tables Pin
xfitr229-Aug-07 16:38
xfitr229-Aug-07 16:38 
GeneralRe: Insert statment for multiple tables Pin
falles0129-Aug-07 16:42
falles0129-Aug-07 16:42 
GeneralRe: Insert statment for multiple tables Pin
xfitr229-Aug-07 17:02
xfitr229-Aug-07 17:02 
GeneralRe: Insert statment for multiple tables Pin
falles0129-Aug-07 17:10
falles0129-Aug-07 17:10 
GeneralRe: Insert statment for multiple tables Pin
xfitr229-Aug-07 17:14
xfitr229-Aug-07 17:14 
GeneralRe: Insert statment for multiple tables Pin
Michael Sync29-Aug-07 17:24
Michael Sync29-Aug-07 17:24 
GeneralRe: Insert statment for multiple tables Pin
Vikram A Punathambekar29-Aug-07 17:37
Vikram A Punathambekar29-Aug-07 17:37 
GeneralRe: Insert statment for multiple tables Pin
falles0129-Aug-07 18:06
falles0129-Aug-07 18:06 
GeneralRe: Insert statment for multiple tables Pin
falles0129-Aug-07 18:02
falles0129-Aug-07 18:02 
GeneralRe: Insert statment for multiple tables Pin
falles0129-Aug-07 18:42
falles0129-Aug-07 18:42 

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.