473,748 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create a WebKitBrowser dynamically and fire DocumentComplet ed

344 Contributor
I'm using WebKit to navigate to a URL then use it's HTML contents using WebBrowserDocum entCompletedEve ntHandler. It works when drag-drop the control onto the form. But when I try to dynamically create the WebKitBrowser it does not fire the DocumentComplet ed event. So I think it does not navigate at all.

Expand|Select|Wrap|Line Numbers
  1. WebKitBrowser br = new WebKitBrowser();
  2. br.Name = "browser";
  3. br.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(br_DocumentCompleted);
  4. br.Navigate("http://www.google.com/");
Event Handler
Expand|Select|Wrap|Line Numbers
  1. private void br_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
  2. {
  3.     string text = (sender as WebKitBrowser).DocumentText;
  4. }
Thanks,
Bassem
Feb 18 '13 #1
0 1378

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

Similar topics

2
470
by: Patrick Marti | last post by:
Hi together I wish to create an object at runtime in the web. I get many good tips for how to do before two days by using the same Subject. So I got also the following link wich is showing exactly that what I want to do http://www.codeproject.com/aspnet/retainingstate.asp but, I got always an error >>Das Steuerelement 'ControlID_0' des Typs 'TextBox' muss in einem Formtag mit runat=server positioniert werden.]
3
2387
by: Null | last post by:
Hello -- I am looking for a way to dynamically generate PDF documents - combining Crystal Reports and data driven "fields". For example, I have a template that's essentially a summary document and I would like to populate certain fields with client names and account data. Also, I would like to make a "master" PDF that contains all the PDF summaries in one document -- and use bookmarks if possible.
2
2539
by: macca | last post by:
Hi, I am writing a GUI application. It will have a number of user defined controls( I plan to use/create a user defined control that will output alarm states that the user can also select and will open a dialog to give more detailed information) . The number of controls on the main GUI will vary from client site to client site. I would therefore like to populate the dialog with these controls dynamically.
2
1127
by: Andy Sutorius via DotNetMonster.com | last post by:
Hi, I remember in classic ASP when you had a webpage with a large number of textboxes and you needed to perform an update sql statement you could loop through all of the fields and dynamically create a sql statement. I have a webform with over 200 textboxes and I need to perform a sql update. Is there a way to do this in ASP.NET? Thanks,
4
3168
by: Rainer Queck | last post by:
Hi NG, I am looking for a good way to dynamically generate a bunch of TabPages. I have a list of more or less identical object. For each of these objects I need a user interface. My thought is, to provide a TabPage for every object with controls on it to interact with them. How can that be achieved dynamically. The only way I can think of to do this is to prepare the max needed TabPages
2
2890
by: chaitannya | last post by:
I have created a class CMyGraph, which plots points of a graph on screen. The code i am using right now is as follows. CMyGraph* plotPoint1 = new CMyGraph(); plotPoint1->SetData(0, 64); But if i have to plot multiple points i do it hardcoded like.. .. CMyGraph* plotPoint1 = new CMyGraph(); plotPoint1->SetData(0, 64); CMyGraph* plotPoint2 = new CMyGraph();
10
7287
by: neena | last post by:
can anyone please tell me how to dynamically create labelboxes,textboxes by clicking a button .i want to customize some of the fields in the web form(adding more fields).Suggest me some ideas of doing it?
0
1157
by: Suresh Sharma | last post by:
i want to know how to create page dynamically like Sulekha.com which show his record per html page through programm. I am working on project such like this and i want to implement like this? when i click 'next' button then it give (page1,page2,..........so on at last paging data showing. At this time page creation depend on data .
3
1361
by: priya1985 | last post by:
i need to create radiobuttons dynamically by reading from the database.... can anybody provide some help????
3
2016
by: hitechpundir | last post by:
Hi; i m working on a project where i need run time creation of GUI. i have some no. of entities for which i want checkboxes in front of them which can be checked/ unchecked by user. But the problem is that the number and name of entities is not fixed and it depends on the file which is used as input.
0
8995
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9381
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9332
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8252
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.