Is there a way to 'replace' the Enabled property of a form?
In a real object oriented language it is simple, it's also simple for a usercontrol, but I need it for a 'regular' Form.
Because of the limitation of 255 components on one form we were forced (10 years ago) to use a form for every 'tab' instead of using the normal tabcomponent. So we have a parentform and a childform (which is positioned over the tabstrip) now I have an object that disables it's ownerform using 'OwnerForm.Enabled=False/True', but this disables only the childform. So now I wanted to do something like this:
but ofcourse VB is bitching about the function already available, and even if it would work Me.Enabled would just call itself again.Code:Public Property Let Enabled(ByVal bValue As Boolean) ' me.Enabled = bValue m_OwnerForm.Enabled = bValue End Property Public Property Get Enabled() As Boolean Enabled = m_OwnerForm.Enabled End Property
maybe someone has a great idea how to 'fix' this..
In the meantime I'm going to checkout if I can do something with the Form activate/deactivate/Paint event..
(Damn MS for not releasing VB7 to the public and instead go for VB.NET, hehe..)




Reply With Quote