Sunday, May 20, 2007

Easier WinForm UI Multithreading Support

ISerializable - Roy Osherove's Blog - Easier Winform UI Thread Safe Methods with DynamicProxy2 and Osherove.SimpleInterception

"Wouldn't it be cool if you could write something like this in your winform apps? :

[RunInUIThread]
protected virtual void DoSomeUIStuff()
{
this.Text = "hey"
}

Download the binary files from here. (here are the source files)

Inspired by Ayende's talk at devTeach where he showed using Castle Windsor, I decided to take a closer look at how to implement a UI-Thread-Safe solution for winforms, based on his talk.

..."

That WOULD be cool, very cool. Much easier than the InvokeRequired/Delegate game...

I want to take a good close look at this (and the Castle Windsor license [Apache 2.0]).

Also when I've had more coffee, I want to take a look at the Castle Windsor project (by first reading and groking Introducing Castle - Part I and Introducing Castle - Part II)

(via Christopher Steen - Link Listing - May 19, 2007)

No comments:

Post a Comment

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...