Freigeben über


NYC .NET Developer's Group Meeting Review

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.