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

  • Thread starter Thread starter Yasutaka Ito
  • Start date Start date
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
 
Yasutaka,

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