NYC .NET Developer's Group Meeting Review

Published 20 June 03 12:20 AM | RWlodarczyk 
Ken Getz gave a great talk tonight about Windows Forms Inheritance. This is a great idea if you're looking to save some time coding and debugging/testing. I've used some of the ideas that he mentioned today in the past and found it to be really helpful for forms that require similar functionality. Ken has the code he used tonight available online here if you're interested in taking a look. One really cool thing that he showed was that if you ever need to do some more advanced stuff with a Windows Forms Control, and the control has exposed a protected method to do what you need, then just create a MyWhateverObject that inherits from WhateverObject and you'll gain access to those protected methods. Seems so obvious to do, but as he pointed out everyone just forgets to look at the protected methods because of their protection level. Definitely a neat trick.
Filed under:

Comments

No Comments
Anonymous comments are disabled

About RWlodarczyk

Robert has been at Microsoft since August 2003. He has worked on WPF Imaging, Media, and Effects, and Windows Vista (in the form of the Windows Imaging Component). He is currently the test lead for the Windows Imaging Component.
Page view tracker