I can’t believe Visual Inheritance is such a piece of crud! It does not work – simple as. This may be old news to some of you out there, but I think it’s worthy of a rant anyway. For those who don’t know what it is – well basically Visual Inheritance lets you create a form – lets call it your base form, and lets you inherit children forms from it or more specialised functionality of the base form. Its essentially a great idea, as this should potentially save you time if you design well.
If you don’t get the “One of more errors encountered while loading the designer…” blah de blah error message, then you cant get nested controls to work properly, like controls on the toolstrip etc. It’s just rubbish, especially when you spend time and effort into designing your code base to implement it.
Firstly – I am really annoyed at MS (Microsoft) – how could they release such fundamental flaws into a programming language, how did it get past formal testing? – it really dents your confidence in the product – but actually because I happen to like the framework so much, I have the inner strength to forgive them. But I’m still angry!
Secondly – In the past MS made voiced Visual Inheritance as a key feature of VS (Visual Studio) – they must have known that it was a bit dodgy but but put it in the release anyway.
Thirdly – MS even include it in the MS Certification exam (70-316). They are testing you on something that doesn’t work! – “I sense the conflict within you” (geek point for Star Wars type reference ;))
Fourthly – Be honest with us – tell us “we don’t recommend you use it”, we made a mistake and we can’t be bothered to rectify it. Now move on.
Finally – you shouldn’t have to be constantly fighting with the IDE designer, looking for workarounds and phantom errors that don’t really exist – its supposed to help us poor programmers – not toy with our patience and fragile emotions (well, at least mine).
So the final upshot is this – FORGET VISUAL INHERITANCE – Microsoft have!
You just have to do things the non-OOP way – it’s not as elegant, it’s more work, but at least you’ll be one step closer to delivering.