Click here to Skip to main content
15,916,600 members
Home / Discussions / C#
   

C#

 
GeneralRe: C#, How to check an object to see if it is a numeric value? Pin
Christian Graus7-Apr-08 20:19
protectorChristian Graus7-Apr-08 20:19 
GeneralRe: C#, How to check an object to see if it is a numeric value? Pin
Mircea Puiu7-Apr-08 21:33
Mircea Puiu7-Apr-08 21:33 
GeneralRe: C#, How to check an object to see if it is a numeric value? Pin
blackjack21507-Apr-08 23:51
blackjack21507-Apr-08 23:51 
GeneralRe: C#, How to check an object to see if it is a numeric value? Pin
Mircea Puiu8-Apr-08 21:19
Mircea Puiu8-Apr-08 21:19 
GeneralWell, there is a simpler way... Pin
Anthony Mushrow7-Apr-08 21:59
professionalAnthony Mushrow7-Apr-08 21:59 
QuestionHow to interrupt a method in c#? Pin
daniel abcde7-Apr-08 16:17
daniel abcde7-Apr-08 16:17 
AnswerRe: How to interrupt a method in c#? Pin
daniel abcde7-Apr-08 16:21
daniel abcde7-Apr-08 16:21 
GeneralRe: How to interrupt a method in c#? Pin
Luc Pattyn7-Apr-08 17:21
sitebuilderLuc Pattyn7-Apr-08 17:21 
Hi,

if you call the copyDirectory method on the GUI thread (say inside a button click handler,
or a form load handler), then the GUI will be blocked as long as the copy takes, hence
the stop button will not work during that time, making it useless.

the right solution is to perform the copyDirectory on a separate thread, which gets
launched by the start button or the form load handlers, and which does not run on the
GUI thread, so you can move, resize, etc while the copy is going on; and you now can
use the stop button.
Warning: if you need to update the GUI (say show the filename currently being copied)
you would need Control.InvokeRequired and Control.Invoke to do so.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: How to interrupt a method in c#? Pin
daniel abcde7-Apr-08 21:30
daniel abcde7-Apr-08 21:30 
GeneralRe: How to interrupt a method in c#? Pin
Mircea Puiu7-Apr-08 21:55
Mircea Puiu7-Apr-08 21:55 
GeneralRe: How to interrupt a method in c#? Pin
scott_hackett9-Apr-08 2:53
scott_hackett9-Apr-08 2:53 
GeneralRe: How to interrupt a method in c#? Pin
Mircea Puiu10-Apr-08 21:29
Mircea Puiu10-Apr-08 21:29 
GeneralRe: How to interrupt a method in c#? Pin
daniel abcde14-Apr-08 0:04
daniel abcde14-Apr-08 0:04 
GeneralRe: How to interrupt a method in c#? Pin
Mircea Puiu14-Apr-08 23:27
Mircea Puiu14-Apr-08 23:27 
QuestionValidate user permissions Pin
Thedan7-Apr-08 15:40
Thedan7-Apr-08 15:40 
GeneralRe: Validate user permissions Pin
daniel abcde7-Apr-08 17:08
daniel abcde7-Apr-08 17:08 
QuestionAppDomain with System.Reflection.Assembly? Pin
Daniel Grondin7-Apr-08 15:31
Daniel Grondin7-Apr-08 15:31 
AnswerRe: AppDomain with System.Reflection.Assembly? Pin
Luc Pattyn7-Apr-08 15:36
sitebuilderLuc Pattyn7-Apr-08 15:36 
Generalproblem with HttpRequest.QueryString Pin
dfn7-Apr-08 12:44
dfn7-Apr-08 12:44 
GeneralRe: problem with HttpRequest.QueryString Pin
Christian Graus7-Apr-08 12:54
protectorChristian Graus7-Apr-08 12:54 
GeneralRe: problem with HttpRequest.QueryString Pin
Guffa7-Apr-08 13:59
Guffa7-Apr-08 13:59 
GeneralOpening files in a secure location Pin
RussBus7-Apr-08 11:40
RussBus7-Apr-08 11:40 
GeneralRe: Opening files in a secure location Pin
Christian Graus7-Apr-08 11:48
protectorChristian Graus7-Apr-08 11:48 
GeneralRe: Opening files in a secure location Pin
RussBus7-Apr-08 11:50
RussBus7-Apr-08 11:50 
GeneralRe: Opening files in a secure location Pin
Christian Graus7-Apr-08 11:57
protectorChristian Graus7-Apr-08 11:57 

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.