After ‘writing off’ Visual Inheritance – I still found that I was stuck with it in my application – just so many things depended on it working. I’m still annoyed about it being buggy and doing unexpected things – but I have come up with a list of things to do in order to keep VI ticking over – maybe you will find these useful too:
- No abstract control types
- No constructor arguments
- Initialisation moved to Form_Load as opposed to the constructor
- No controls nested in another windows control e.g. toolstrip.
- Close all documents -> Clean -> Rebuild
- Restart Visual Studio