M
moondaddy
I'm writing an app using vb.net 1.1 and want to start making use of a base
form for all my forms. My question is that this base form will have some
common controls (a button for example). The state of this button will be
controlled in the base form (such as enabled and disabled). I don't need to
expose all of its properties to the derived form, but I do need to allow its
location to be changed from the derived form. is there a way to just expose
its location property at design time?
I also have a method in all of my forms called FormState. When called, the
formstate method gets the object state from the business class (where state
can be New-Not-Dirty, New-Dirty-Valid, New-Dirty-NotValid, etc.) and uses it
in a select case block to set the state of many controls on the form such as
menu items, add, close buttons, etc. and I want to move the bulk of this
into the base form. Is there a way in the derived form to call the
FormState method in the base form and pass in a value for this select block
to execute in the base form?
Thanks
form for all my forms. My question is that this base form will have some
common controls (a button for example). The state of this button will be
controlled in the base form (such as enabled and disabled). I don't need to
expose all of its properties to the derived form, but I do need to allow its
location to be changed from the derived form. is there a way to just expose
its location property at design time?
I also have a method in all of my forms called FormState. When called, the
formstate method gets the object state from the business class (where state
can be New-Not-Dirty, New-Dirty-Valid, New-Dirty-NotValid, etc.) and uses it
in a select case block to set the state of many controls on the form such as
menu items, add, close buttons, etc. and I want to move the bulk of this
into the base form. Is there a way in the derived form to call the
FormState method in the base form and pass in a value for this select block
to execute in the base form?
Thanks