Status bar - panel text property 
Author Message
 Status bar - panel text property

My problem as follows:

I have a main MDI from with a status bar which includes some panels
(visible). The main form shows up as the application starts. From the MDI
form I call another form

Example:
dim NewForm as new Form
NewForm.Show()

Now I want the result of certain procedures to have effect on the text
property of the status bar of the main form.

Example:
The text in the textbox of the NewForm to appear in one panel of the main
form after the new form closes.

I tried:
dim NewMainform as New MainForm
NewMainForm.StatusBarPanel1.text = me.textbox1.text
me.Close()

but it fails (without any error).

Any ideas?



Sun, 16 Jan 2005 15:07:19 GMT  
 Status bar - panel text property
Since there can be only one MDI parent per app, just access the parent using
it's real name..

MDIParent.StatusBar1.Panels("Blah").Text = "Anything you want"

--
Ken Halter - MS-MVP-VB - Please keep it in the groups..
http://www.vbsight.com - http://www.vbsight.com/MultiColumn.htm

Quote:

> My problem as follows:

> I have a main MDI from with a status bar which includes some panels
> (visible). The main form shows up as the application starts. From the
> MDI form I call another form

> Example:
> dim NewForm as new Form
> NewForm.Show()

> Now I want the result of certain procedures to have effect on the text
> property of the status bar of the main form.

> Example:
> The text in the textbox of the NewForm to appear in one panel of the
> main form after the new form closes.

> I tried:
> dim NewMainform as New MainForm
> NewMainForm.StatusBarPanel1.text = me.textbox1.text
> me.Close()

> but it fails (without any error).

> Any ideas?



Sun, 16 Jan 2005 22:11:06 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How you see text on status bar panel with Stye = OwnerDraw

2. FLICKER IN SCROLLING TEXT (Status Bar Panel)

3. Q: get text of panels of a status bar

4. CapsLock & Numlock status in Status Bar Panels

5. Status Bar Insert Panel reports the wrong status

6. Progress bar in a Status bar panel?

7. VB5: Adding Progress Bar To Status Bar Panel?

8. Adding a Progress Bar to a Status Bar panel

9. Progress Bar in Status Bar Panel ?

10. Progress bar in status bar panel - how?

11. How Does One Display a ProgressBar Inside A Status Bar Panel

12. Status Bar Panel Type Date/Time

 

 
Powered by phpBB® Forum Software