|
-
Apr 17th, 2000, 02:25 AM
#1
Thread Starter
Member
Anyone know how to update a status bar on a main form from another form?
I have main form that controls my app (frmMain) that I want to update the status bar from within another form that was called by the main form.
Here's the code I used but the main form never shows the text in the statusbar.
frmMain.sbStatusBar.Panels(1) = "My Test Text"
If I put this line somewhere in the code of FrmMain it will work.
Thanks.
-
Apr 17th, 2000, 04:06 PM
#2
Fanatic Member
Refresh Status Bar
After the line of code that says
Code:
frmMain.sbStatusBar.Panels(1) = "My Test Text"
place the following code
Code:
frmMain.sbStatusBar.Refresh
Iain, thats with an i by the way!
-
Apr 17th, 2000, 08:59 PM
#3
New Member
Or, you can simply change the command to give a direct call to the text property.
frmMain.sbStatusBar.Panels(1).Text = "My Test Text"
Chris Hockenberry
Application Engineer
Willow Bend Communications
-
Apr 17th, 2000, 09:33 PM
#4
Thread Starter
Member
Actually, I did have the .text reference but I forgot to type it in my original post.
I also tried the .Refresh but it didn't work either.
-
Apr 17th, 2000, 10:06 PM
#5
Fanatic Member
You could try either of the following after setting the text in the status bar.
or you could try
Iain, thats with an i by the way!
-
Apr 28th, 2000, 02:41 AM
#6
Thread Starter
Member
In case anyone cares, I figured out how to update the statusbar. None of the above methods worked but thanks for the posts.
The status bar could not be updated unless the second form that was called by the main form finished executing. So I setup a function to execute immediately after the frmSecondform.show code.
If someone could explain why that form must complete that would be great!
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|