I've recently had my first opportunity to dabble with c# and .Net 2005 beta 2 and have had my first occasion to inherit from a form. I had a base form which requests certain information from the user. I needed a similar form, with an additional prompt. The obvious choice was to inherit from the base form. I tried doing this only to discover that all the controls were locked and I couldn't rearrange the form to add my new parameter in a more obvious location. This seemed like a ridiculous limitation and it took a bit of googling, but eventually we found the answer, set the controls in the base form to have a Modifier value of protected or public. This does the trick!
comments powered by Disqus