Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 8th, 2008, 05:35 PM
Authorized User
 
Join Date: Feb 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Web Browser Control

Hi,

I am trying to get status text of the browser using following code but for some reason I am not getting any values back. Any idea why?

// both lines doesn't work
string result = webBrowser1.Status.Text;
string result = webBrowser1.Document.Window.StatusBarText;

Thanks


A.Asif
__________________
A.Asif
 
Old January 9th, 2008, 06:26 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I've run some quick tests, and it works fine for me. What it is returning IS the status bar, it must just mean the status bar is blank.

Try capturing the StatusTextChanged event and check the StatusText value in that, you'll see it gets changed often by the browser itself, so it might be overwriting whatever your web page is writing.

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser control in C# 2.0 [email protected] C# 2005 1 November 10th, 2007 06:56 AM
Using web browser control in C#2.0 [email protected] C# 5 November 1st, 2007 12:01 PM
Problem with Web Browser control in vc++ sureshkumarct Visual C++ 0 May 29th, 2006 04:01 AM
Web Browser Activex Control gdelucchi Access 0 February 20th, 2006 02:18 PM
web control not displaying in browser rj1406 ASP.NET 1.0 and 1.1 Basics 8 September 19th, 2004 05:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.