Click here to Skip to main content
15,892,537 members
Home / Discussions / C#
   

C#

 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 6:51
mvePIEBALDconsult19-May-10 6:51 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 7:00
sitebuilderLuc Pattyn19-May-10 7:00 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 7:21
mvePIEBALDconsult19-May-10 7:21 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 8:07
sitebuilderLuc Pattyn19-May-10 8:07 
GeneralRe: Showing a continuously refreshed form during calculations Pin
harold aptroot19-May-10 8:15
harold aptroot19-May-10 8:15 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 8:17
sitebuilderLuc Pattyn19-May-10 8:17 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 8:59
mvePIEBALDconsult19-May-10 8:59 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 6:23
mvePIEBALDconsult19-May-10 6:23 
Luc Pattyn wrote:
do you see a way to generalize without much expense


I'm hoping there is a way, but at the moment I have no need of one (which doesn't usually prevent me from trying anyway Unsure | :~ ).

When I whipped that up, I had the idea that it might serve as a general template for other such handlers that might require data from a derived EventArgs. At least it uses the pre-existing delegate.

I was just trying to make a generic version, but it's not as straight-forward as I would hope and probably not very useful. I would expect an anonymous method could be passed in that would do the actual work.

My feeling is that checking InvokeRequired and Invoking as necessary should be built into the classes and the application shouldn't need to worry about it. So what if slows down the code a little when it isn't required.


GeneralRe: Showing a continuously refreshed form during calculations Pin
Hankyaku19-May-10 7:12
Hankyaku19-May-10 7:12 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 9:43
sitebuilderLuc Pattyn19-May-10 9:43 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 9:30
mvePIEBALDconsult19-May-10 9:30 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 9:52
sitebuilderLuc Pattyn19-May-10 9:52 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 10:34
mvePIEBALDconsult19-May-10 10:34 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 11:15
sitebuilderLuc Pattyn19-May-10 11:15 
AnswerRe: Showing a continuously refreshed form during calculations Pin
#realJSOP19-May-10 9:21
mve#realJSOP19-May-10 9:21 
QuestionWhat do I require to create a program that controls a device driver? Pin
Ian Durward19-May-10 2:47
Ian Durward19-May-10 2:47 
AnswerRe: What do I require to create a program that controls a device driver? Pin
Henry Minute19-May-10 3:31
Henry Minute19-May-10 3:31 
AnswerRe: What do I require to create a program that controls a device driver? Pin
Luc Pattyn19-May-10 3:51
sitebuilderLuc Pattyn19-May-10 3:51 
AnswerRe: What do I require to create a program that controls a device driver? Pin
The Man from U.N.C.L.E.19-May-10 4:06
The Man from U.N.C.L.E.19-May-10 4:06 
QuestionMuslim Holiday in Georgian Calendar Pin
dataminers19-May-10 1:47
dataminers19-May-10 1:47 
AnswerRe: Muslim Holiday in Georgian Calendar Pin
Pete O'Hanlon19-May-10 2:26
mvePete O'Hanlon19-May-10 2:26 
GeneralRe: Muslim Holiday in Georgian Calendar Pin
Luc Pattyn19-May-10 3:29
sitebuilderLuc Pattyn19-May-10 3:29 
GeneralRe: Muslim Holiday in Georgian Calendar Pin
Pete O'Hanlon19-May-10 3:43
mvePete O'Hanlon19-May-10 3:43 
GeneralRe: Muslim Holiday in Georgian Calendar Pin
Luc Pattyn19-May-10 3:53
sitebuilderLuc Pattyn19-May-10 3:53 
GeneralRe: Muslim Holiday in Georgian Calendar Pin
Luc Pattyn19-May-10 9:32
sitebuilderLuc Pattyn19-May-10 9:32 

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.