Browse by Tags

All Tags » WinForms (RSS)

Resizing a Form has always been a pain in the rectum...

Think really hard for a second about how layout logic works... Oh, not that hard, you're starting to smoke. Here, how about I think about it for you and then you can point out where you have a difference of opinion... That works better for me anyway....
Posted by Justin Rogers | 8 comment(s)
Filed under: ,

Adding some Project Distributor Client Tools.

Darren keeps asking me why I'm not posting everything on the site, and my major push-back is that it wasn't easy. It still isn't as easy as I would like, but my concentration on some new tools is a start. PDDrop is a red-dot tool that allows you to log...
Posted by Justin Rogers | 70 comment(s)
Filed under: ,

Math Quickie: Adding demo code for Circular and Wavy Text postings

Keeping track of all of this stuff is getting confusing, but Project Distributor is helping out a bit by providing a great tool-box where I can upload my code and samples. I'll try and use it as often as possible, that way people can just jump over and...
Posted by Justin Rogers | 2 comment(s)
Filed under: ,

Illegal Cross Thread Exceptions under the debugger when using Windows Forms and Whidbey...

The Windows Forms team gets an A today for some super creativity... When you are running under a debugger, and only under the debugger, you start to get a bunch of really strange cross thread exceptions if you try to do something like call Focus() on...

Feedback on a custom input control and the Rumors .NET feedback system.

I'm starting to get all excited now. Before I go too much into Rumors .NET, the idea isn't entirely mine. During one of my projects working at Microsoft I had some chats with an excellent engineer on the concepts of messaging and rumor systems within...
Posted by Justin Rogers | 2 comment(s)
Filed under: , ,

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...

Custom event subscription methods can help remove redundant code.

When working with a data-layer and trying to retrieve some list or collection for consumption by a number of different UI elements you run into the situation of having lots of redundant code. As an example, a common approach might have to utilize the...

NumericUpDown in Windows Forms and a small acceleration hack...

Since I've been chatting about acceleration, I figured I'd point out how and where these types of methods could be used to make your life simpler and how sometimes a basic hack will do. The first exercise is going to be taking a NumericUpDown and setting...

Xml in the WebBrowser? What about easy RSS in the WebBrowser in Whidbey?

A fellow blogger has been talking about hosting the web browsing components of IE as an ActiveX Control. With Whidbey this all goes away and you can now use the Windows Forms 2.0 WebBrowser control. It just drops into place, has a bunch of events for...

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...
More Posts Next page »