So a few posts ago, I said I’ll teach myself WinForms. It’s been about a month since then… and I want to share some of my learning experience.
First off, having been a developer in Outlook, I thought I’ll re-write the Outlook client using WinForms. Kind of like what Joe Stegmann did here. Here are the issues I ran into…
1) I can’t find “MessageBox”!
I am actually a little embrassed to even admit what was the first issues I ran into. So, as in any application, I thought I’ll start with a simple “Hello World” message box. I wasn’t reading tutorials or anything to start. I just started with the Microsoft Visual Studio 2005 and selected a new Windows Forms application. I searched for “Error Dialog Windows Forms”, “Warning Dialog .NET” and so forth on MSDN, Live Search, Google.. you name it. NONE of them turned up “MessageBox”! After half an hour of fun times with the search engines, I decided to write my own.
In Outlook, we did a lot of own layout code. Again, I spend my fair share of time on the search engine only to find nothing useful. So again, I wrote my own. Only to find.. Windows Forms has their own layout! You can do this using the “Docking” functionality.
3) Two-way DataBinding a TreeView
Ok.. so the search engines burned me twice, and I thought, not finding a 2-way databind TreeView was my own poor skills in using a search engine. Yes… 1 hours later, I learnt… Windows Forms really doesn’t have one, and I should have spent my time writing one.
I found the Windows Forms FAQ very useful during my learnng process…
What were the stuff you ran into when you first learnt Windows Forms? Do you have any good resources to share?
I have been playing around with WPF a lot lately… hopefully I will share my experience and some cool samples