E
Eddie
If FormMain = MDI parent, FormSub = Child parent,
I execute FormSub from the menu like this way.
FormSub^ sub = gcnew FormSub;
sub->MdiParent = this;
sub->Show();
This can generate child form sub in FormMain.
In th FormMain, there is status bar label named statusBar;
I'd like to add code in the sub form that can access statusBar of parent
form.
I thought I can access to parent form member function in the sub form
like this way,
(This worked in VB.NET)
this->MdiParent->statusBar->Text = "sub closed!!!";
But this->MdiParent doesn't show me statusBar.
this->ParentForm doesn't work, too.
I made status bar label public in the MainForm, it doesn't work, too.
Is there any other way I can try?
Thanks.
I execute FormSub from the menu like this way.
FormSub^ sub = gcnew FormSub;
sub->MdiParent = this;
sub->Show();
This can generate child form sub in FormMain.
In th FormMain, there is status bar label named statusBar;
I'd like to add code in the sub form that can access statusBar of parent
form.
I thought I can access to parent form member function in the sub form
like this way,
(This worked in VB.NET)
this->MdiParent->statusBar->Text = "sub closed!!!";
But this->MdiParent doesn't show me statusBar.
this->ParentForm doesn't work, too.
I made status bar label public in the MainForm, it doesn't work, too.
Is there any other way I can try?
Thanks.