Wednesday, April 30, 2008

The Pattern has landed

I've been very quiet, trying to absorb the MVC/MVP patterns. Last Saturday I finally wrote my first MVP example program, actually it was copied almost directly from Steve Knight's Hacking Hat example http://www.hackinghat.com/index.php/windows/mvp-aka-mvc-in-vbnet
I say almost as there are some nice features of VB.Net that you dont have in sad old VB6 -- constructors are very useful for instance. Nevertheless, I might very well post the code to my website as a help to anyone else out there insane enough to try it in VB6.
If you want to see a longer and more complex example at http://codefornothing.wordpress.com/2008/01/24/mvp-implementation-details/
but it uses Excel as well which I havent got my head around that yet -- when I do I'll have a shot at translating Jeremy Miller's BYOC stuff from C# to VB.Net to VB6 (sheesh!)

No comments: