Click here to Skip to main content
15,902,845 members
Home / Discussions / C#
   

C#

 
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 
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 
Yes, that looks OK.

I'm not sure I would have a EventArgsWrapper class, TextEventArgs could derive from EventArgs; a simple null test would filter the real nulls, the sequence of if(e is ...) would take care of the rest anyway.

Your example is still limited to properties that exist for all Controls; it becomes tedious when a property exists only for some, such as SelectionStart (TextBox, ComboBox, MonthCalendar, ...). Maybe use your style for the popular ones, and reflection for the others.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

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
professional#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 
AnswerRe: Muslim Holiday in Georgian Calendar Pin
The Man from U.N.C.L.E.19-May-10 2:41
The Man from U.N.C.L.E.19-May-10 2:41 
AnswerRe: Muslim Holiday in Georgian Calendar Pin
riced19-May-10 3:41
riced19-May-10 3:41 
QuestionUse event from C++ library in C# application Pin
Programm3r19-May-10 1:39
Programm3r19-May-10 1:39 
AnswerRe: Use event from C++ library in C# application Pin
Luc Pattyn19-May-10 1:45
sitebuilderLuc Pattyn19-May-10 1:45 

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.