Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ


Choose your language

InfoQ Homepage News Presentation: NET Windows Forms Tips and Tricks

Presentation: NET Windows Forms Tips and Tricks


Ken Getz demonstrates several different techniques you can use when building Windows applications (recorded at DevLink), including: Creating owner-drawn controls, binding controls to just about anything, exposing protected information with inheritance, exposing new control behavior using inheritance, handling thread synchronization with Windows forms, and creating your own property grid. Samples are provided in both C# and VB.NET.

Watch .NET Windows Forms Tips and Tricks.(54 min)

Display Controls your own Way

  • Use GDI+ to handle painting yourself
  • For ListBox/ComboBox set the DrawMode property
  • Use Data to Control UI
  • Data binding infrastructure can bind almost any property to any value
  • Notifications based on property change events
  • Expose Protected Info
  • Most functionality of WinForm Controls are protected
  • To use protected info, inherit from control and expose
  • Improve the Look and Feel of Your application
  • Integrate Windows XP and Windows Vista themes

Do you have more Tips and Tricks to share?

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • Thanks for this presentation

    by Brian Schroer,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    There was so much good stuff at DevLink last year that I had to skip some presentations, and it's great to be able to see some of those!

  • How do you guys do this?

    by Charles Cherry,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Can someone tell me how you synchronize the powerpoint slides with the video? Is this a product, or is it done via code? I know the video and slides are in Flash, but how do you keep them in sync? Does the video fire an event at specified times, or what?


Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p