Fergus,
as you seem to be the expert here :-) , how can I access the status bar
from a class that is called by a mdi child. i have implemented a class
that reads a file and i want to update the status bar from within that
class.
the direc cast me.mdiparent does not work ...
Thanks
Sorry , question might obvious... just started in vb.
Alex
Fergus Cooney wrote:
> Hi Alex,
>
> Ah yes, thanks for reminding me.
>
> Me.MdiParent <will> give you correct parent Form but the Type of MdiParent
> is plain old Form, whereas the actual Form is a derivation -
> AlexesWonderfulAppForm, so the Controls are 'hidden'.
>
> You'll need to cast the MdiParent to get at the additional properties.
> Dim MyMainMan As AlexesWonderfulAppForm
> MyMainMan = DirectCast (Me.MdiParent, AlexesWonderfulAppForm)
> MyMainMan.stBar.Text = "Yo, Dude!!"
>
> You can, of course, do all that in one go:
> DirectCast (Me.MdiParent, AlexesWonderfulAppForm).stBar.Text _
> = "Yo, Dude!!"
>
> Regards,
> Fergus
>
>
>
|