473,378 Members | 1,236 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,378 software developers and data experts.

C# - Need WebBrowser Help

3
Hello there people. I have gone onto my 7th programming language, C# and have come across a few problems. First of all, on my Web Browser, I started using what I did in VB6. For the WebBrowser error, I get a null exception when trying to set the Form's name as the site name using
Expand|Select|Wrap|Line Numbers
  1. "Browser - " + webBrowser1.Site.Name;
and I can't figure out anything else. I added
Expand|Select|Wrap|Line Numbers
  1. if (webBrowser1.Site == null)  return;
which stopped the exception, but it didn't display the site name. So that's that. My second problem with it is Navigated. I added a webBrowser1_Navigated event which looks like this.

Expand|Select|Wrap|Line Numbers
  1.         private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
  2.         {
  3.  
  4.         }
and anything I put in it never works. Thanks for your time!

~xLin
Jan 3 '08 #1
1 1119
Frinavale
9,735 Expert Mod 8TB
Hello there people. I have gone onto my 7th programming language, C# and have come across a few problems. First of all, on my Web Browser, I started using what I did in VB6. For the WebBrowser error, I get a null exception when trying to set the Form's name as the site name using
Expand|Select|Wrap|Line Numbers
  1. "Browser - " + webBrowser1.Site.Name;
and I can't figure out anything else. I added
Expand|Select|Wrap|Line Numbers
  1. if (webBrowser1.Site == null)  return;
which stopped the exception, but it didn't display the site name. So that's that. My second problem with it is Navigated. I added a webBrowser1_Navigated event which looks like this.

Expand|Select|Wrap|Line Numbers
  1.         private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
  2.         {
  3.  
  4.         }
and anything I put in it never works. Thanks for your time!

~xLin
Are you developing a desktop application or web application?
Could you please outline the requirements of your application in more detail...for instance, what are you trying to display?

-Frinny
Jan 4 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: philip | last post by:
Is it possible, on a WebBrowser control, to intercept a HyperLink and react programmatically to this click ? That's my first question. In fact, I use the Webbrowser as a sort of report (I write...
5
by: awacs.mod | last post by:
Hello NG. I have a WebBrowser from the ToolBox in my application. This webBrowser is there to show Internet sites as well as files on my computer. So far, so easy, but i permanently fail in...
2
by: jasonhartsoe | last post by:
I'm using Visual Studio 2005 Team Edition....using visual basic. I'm trying to use the webbrowser control. In the webbrowser control I have it got to a page where there is a form. It waits for...
1
by: AMDRIT | last post by:
Hi gang, this is pretty critical to me. Any help you can provide is appreciated. I have a WebBrowser control placed on a form. I am not getting the same results as I am in IE. Here is the...
2
by: Ryan Ramsey | last post by:
I have been chasing this one down for a week and have narrowed it down to a machine issue. I have the following code: webBrowser.Navigate(http://finao.net/post_dkp.php?database=40); Basically...
0
by: newcomer | last post by:
I am trying to create a test case for WebBrowser.hasChildren = true. I read specs on "http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser_properties(VS.80).aspx". I don't...
0
by: Balex | last post by:
hi, I have a VB.Net app which "reads" in html pages from a web server using winhttp. The purpose is for the app to "fill in" data fields on the page, then send it back to the web server, as if a...
2
by: Scott Gravenhorst | last post by:
I recently (within 30 days) downloaded and installed VB 2005 Express. I like it a whole lot... but: I have been trying to work with the WebBrowser control to display a small amount of help text...
3
by: Peter Oliphant | last post by:
It's not necessary, but it would be nice if there was a way I could easily create something like a 'web browser form' or a 'display web page form' as forms in my application (in a Panel would be...
2
by: jim | last post by:
Has anyone seen a way to read the data stream for a URL being navigated to by a webbrowser control and edit it (i.e. search HTML stream for and possibly remove objectionable language for a kid's...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.