Browse by Tags

All Tags » CLR Internals » WinForms (RSS)

Objects with dense events, but sparse usage can benefit from custom event storage.

I'm never sure how many people break open ILDasm on a daily basis, so I figure I'll do it for them whenever I find something great to share. The Windows Forms libraries are littered with classes that have hundreds of static properties with names like...

Follow-up: Toast Windows and AnimateWindow, a user found issue.

You can check out the previous entry here Watch out for "Power Toys", sometimes you get more than you bargained for. However, I'm more interested in examining why the failure occurs when adding a label. This is an issue that one of the users found when...
Posted by Justin Rogers | with no comments

[WinForms] Full details of InvokeRequired/Invoke/BeginInvoke, common usage scenarios, and some issues you might not know about.

This is a really big article on all of the operational details of the WinForms marshalling pump (aka the plumbing for Invoke and BeginInvoke). WinForms UI Thread Invokes: An In-Depth Review of Invoke/BeginInvoke/InvokeRequred Abstract: Marshalling the...

Got strange messages in your queue? Maybe Winforms is using it to synchronize your async code onto the UI thread...

I think the fact that BeginInvoke/Invoke/EndInvoke just work is enough for most people. It know it has been enough for me. I didn't even question why it worked, though I did know it was using the message pump, just not exactly how it was using the message...
More Posts