Base form's properties gets changed by the inheriting form...

Y

Yasutaka Ito

Hi,

I have a base form (FormBase), which defines things like the value of the
WindowState. Other forms inherit from this base form to reflect the layout
given in the base form.

Is there a way to prohibit the inheriting form to change the value of the
WindowState property?

Appreciate any input/approach.

thanks!
-Yasutaka
 
V

Vadim Berman

Yasutaka,

Try overwriting the property with "ReadOnly Shadows" property (VB.NET
syntax). Set the property itself after InitializeComponent().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top