visual basic 60 statusBar updating

I am writing a visual basic 60 MDI application and I wish to update the StatusBar which is located on the frmMain Form from a MDIchild Form during run time without having to click on the StatusBar.

I am setting the MDIchild Form text as followes:

Private Sub Form_Load()
URLA1.Move 0, 0
Unload frmSearch
Text100.Text = "Players 1 & 2 Selected"
End Sub

I can update the StatusBar by using the following code and clicking the mouse on the StatusBar control.

Private Sub sbStatusBar_PanelClick(ByVal Panel As MSComctlLib.Panel)
sbStatusBar.Panels(1).Text = ActiveForm.Text100.Text
End Sub

I want to update the StatusBar from the MDIChild Form use code only, no mouse clicks.

Thanks for any help I can get.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
Place this line in the Form_Load event of each form:
frmMain.sbStatusBar.Panels(1).Text = Text100.Text
jimwilsonAuthor Commented:
When I use frmMain.sbStatusBar.Panels(1).Text = Text100.Text inthe Form_Load or any other Proceedure of the MDIchild Form it fails with the message:

Only one MDI form allowed.

Any other suggestions?

Éric MoreauSenior .Net ConsultantCommented:
Create a new test application. This project must have a MDIForm and 2 child forms.

In the project properties, make your MDI form the starting form.

To the MDIForm, add a statusbar, a picture and 2 command buttons into the picture. In the Click event of the both command buttons, display the according form (Form1.Show)

In each Form_Activate event of your child forms, put this:
MDIForm1.StatusBar1.Panels(1).Text = Me.Caption
This works for me.
jimwilsonAuthor Commented:
It works fine now.  It was a startup problem I had not looked for.

Éric MoreauSenior .Net ConsultantCommented:
So, do you accept the work I have done for you?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.