PDA

Click to See Complete Forum and Search --> : Status Bar & VB


ChrisJackson
Nov 17th, 1999, 03:46 AM
How do you read the text in the Status Bar of a Window's program from VB?

Thanks.

Chris

struntz
Nov 17th, 1999, 04:26 AM
Hm . . . what do u mean "read" the text in a status bar? IF are talking about adding text and what not to the Little spaces i forgot what they are called :)
just use the property option its very simple to use . . . it has most of the things u would want in the status bar like NUM,CAPS,DATE,TIME and a few other.

------------------
Cory Sanchez
Young Student
ICQ#: 18640149

Serge
Nov 17th, 1999, 05:10 AM
Those little thing in a StatusBar called Panels. So, if you for example want to change the text in the first panel then you can use something like this:

StatusBar1.Panels(1).Text = "Here is my Text"


Regards,

------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)

ChrisJackson
Nov 17th, 1999, 07:52 PM
When I say "Read" this is what I mean. When a web page completes loading, the word "Done" appears in the left-most panel of the Status Bar in IE4. I would like my VB program to check for this word in the IE panel so that it can continue to execute operations (i.e., move around on the newly opened web page, click "Enter", etc.) after this word has appeared.

In other words, I am really trying to determine when a web page has finished loading. If you know of a better way, or ANY way to do this, please let me know.

Thanks.

Chris

------------------
CJ

Serge
Nov 17th, 1999, 08:02 PM
You can create your own browser using Microsoft WebBrowser control. This control has an event called NavigateComplete2. On that event you can do whatever you wanted to do after the web page has completed loading. Also, you can provide your own status bar with the details of the web page being loaded. There's is an event called StatusTextChange which has one argument ByVal Text As String. You can use that argument to show the status of the web page loading process (i.e. like IE is showing when it load the web page: Openning www.yoursite.com......1 (http://www.yoursite.com......1) Item(s) remaining....etc.


Regards,

------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)

ChrisJackson
Nov 17th, 1999, 09:37 PM
Thanks for the information, Serge.

I may have to use the Web Browser control. Since I just wanted to extract information from a web server, I am going to try to use the "Internet Transfer Control" and by-pass using a browser altogether. However, the location that I am trying to run the VB program from has all kinds of security on Web access and the site that I am extracting information from is Secure(https).

Thanks again,

Chris