473,406 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Status Bar Updates

Hi,

I have developed an MDI program, and simply wish to update
a text panel on a status bar situated on the MDI from from
a child form. In VB6 this was as easy as pie!

How do you achieve it in Vb.net?

I've tried a public property, referencing
me.mdi.parent.controls etc etc and nothing seems to work.

Any Ideas?

Dave
Nov 20 '05 #1
2 1404
"Dave" <an*******@discussions.microsoft.com> schrieb

I have developed an MDI program, and simply wish to update
a text panel on a status bar situated on the MDI from from
a child form. In VB6 this was as easy as pie!

How do you achieve it in Vb.net?

I've tried a public property, referencing
me.mdi.parent.controls etc etc and nothing seems to work.

Any Ideas?


At compile time, VB does not know which Form will be the MDI parent,
therefore you have to use type-casting:

Directcast(Me.mdiparent, <typeOfMdiParent>).Statusbar.text = "text"

Replace "<typeOfMdiParent>" by the class name of the MDI parent.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
* "Dave" <an*******@discussions.microsoft.com> scripsit:
I have developed an MDI program, and simply wish to update
a text panel on a status bar situated on the MDI from from
a child form. In VB6 this was as easy as pie!

How do you achieve it in Vb.net?

I've tried a public property, referencing
me.mdi.parent.controls etc etc and nothing seems to work.


Code for the MDI child (let 'MainForm' be the type of the MDI
container):

\\\
DirectCast(Me.MdiParent, MainForm).StatusBar1.Text = ...
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Mark | last post by:
There are no problems with the following image loading code fragment and window.status assigments/updates in IE but in Firefox window.status fails to update. Any suggestions? (function...
3
by: Alex Linthicum | last post by:
Hi, I've created two access Apps. App A calls App B to perform some lengthy and computational processes. Currently I'm using the acSysCmdSetStatus cmd to update the status of App B, and I'm...
6
by: Ada | last post by:
i have a little bit of issue getting the status bar to work properly. this is what happens now. when the program loaded, the status is "READY..." the code is inside the FORM LOAD. i also...
19
by: Frances | last post by:
Firefox is not respecting window.status, examples in this pg http://www.csua.berkeley.edu/~jgwang/jsform02.htm are ignored by Firefox.. why is this.. is there a solution.. thank you.. Frances
2
by: Ethan Strauss | last post by:
Hi, I have a web service which is doing a lot of processing and taking 4-5 minutes to do so. The processing is split into several discrete steps and I would like for the service to be able to tell...
9
by: Ethan Strauss | last post by:
Hi, I have a web service which is doing a lot of processing and taking 4-5 minutes to do so. The processing is split into several discrete steps and I would like for the service to be able to tell...
18
by: mistral | last post by:
Is there some other (more advanced) effects for status bar, other than standard Scroller Bar, TypeWriter Scroller, Flashing Bar, Decrypter, Ticker, World Clock?
1
by: K Viltersten | last post by:
> bar.PerformStep (); I noticed that there's a property for the bar stating what time it should take for the animation to move the fill to the requested spot. I'm guessing that's the time i...
0
by: =?Utf-8?B?Q1llYWtsZXk=?= | last post by:
We are just starting to use MS Project 07 Pro on PWA. The PM would like to enter updated task status from tasks that are in the schedule and have been completed (as opposed to getting the task...
1
by: Roland | last post by:
Hello, I am writing modal dialog box to display progress of downloading file. I am starting download of a file in constructor of dialog using some asynchronous method call which returns me an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.