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

Showing up webpages/HTML in C# Program

I want to show HTML documents/sites inside my C# program.
I also want the links in the HTML page to tirgger events in the
program that shows the HTML, like every link in the page will dispaly
extra info on the link in the program outside the HTML.

Have any ideas how to show the HTML and tirggering stuff in the
program?
Nov 16 '05 #1
5 1156
JesseJames wrote:
I want to show HTML documents/sites inside my C# program.
I also want the links in the HTML page to tirgger events in the
program that shows the HTML, like every link in the page will dispaly
extra info on the link in the program outside the HTML.

Have any ideas how to show the HTML and tirggering stuff in the
program?


You can embed IE as an ActiveX control in your WinForms application. See
http://www.syncfusion.com/FAQ/WinFor...100c.asp#q645q

Cheers,

--
Joerg Jooss
jo*********@gmx.net
Nov 16 '05 #2
guy
Hi!
you have to use axwebbrowser(put it on your form).
for the refernces of that control see:
http://weblogs.asp.net/stevencohn/ar...09/151836.aspx

any way for use it you have to navigate your url like that:
public int Navigate(String URL)
{
int iRet=0;
object vPost;
object vHeaders;
object oEmpty = "";
object oURL = URL;
vHeaders = "Content-Type: application/x-www-form-urlencoded" + "\n" + "\r";
vPost = ASCIIEncoding.ASCII.GetBytes("");
web.Navigate2(ref oURL, ref oEmpty, ref oEmpty, ref vPost, ref
vHeaders);
//OR You can use the Navigate method as follows
//axWebBrowser.Navigate("http://<server>/navpost.aspx", ref oEmpty, ref
oEmpty, ref vPost, ref vHeaders);
m_bDocumentComplete = false;
return iRet;
}

Nov 16 '05 #3
Thanks for the help.
Let's say I use the IE ActiveX control inside my form.
I want to add an extra feature - When I click on a link in the webpage,
I want extra info popping out in the form and not in the IE control -
can I do this?
How do I do this?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #4
guy
Hi!
you can do it, you have to find the link element and define the event for
that and then do what ever you want.
you have to find an event fot that in the browser,
i don't do it in my application,i'm doinn browsing automation.

guy

"Jesse James" wrote:
Thanks for the help.
Let's say I use the IE ActiveX control inside my form.
I want to add an extra feature - When I click on a link in the webpage,
I want extra info popping out in the form and not in the IE control -
can I do this?
How do I do this?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #5
"Jesse James" <ja************@yahoo.com> wrote in message
news:eq*************@TK2MSFTNGP11.phx.gbl...
Thanks for the help.
Let's say I use the IE ActiveX control inside my form.
I want to add an extra feature - When I click on a link in the webpage,
I want extra info popping out in the form and not in the IE control -
can I do this?
How do I do this?


You can use the free HtmlEditor component

http://www.itwriting.com/htmleditor/index.php

Tim

Nov 16 '05 #6

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

Similar topics

11
by: Robert Ferber | last post by:
Hi, I'm a PHP-programmer who evaluates Python for a new project. I really like a lot of concepts of Python, especially the shell, but there is one great feature of PHP which I don't know how to...
2
by: Stas | last post by:
Hello all! I have two webpages main.asp with some codes and text.html I need joint (insert) text into main.asp. I forgotten instructions to insert first webpage into second. How I can do it?...
12
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown...
7
by: Michael Peters | last post by:
I need a simple editor to edit the texts in static html pages. Is there a program for that? It should be something very simple, nothing like Dreamweaver. I don't need to edit any tables,...
1
by: Vinutha | last post by:
I have designed one page using frameset, where i have included 3 page one for header(topFrame), one for leftMenu(leftFrame) and one for body(ie, mainFrame). when i run that page using tomcat, i got...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
7
by: Patricia Mindanao | last post by:
I have a directory tree on my hard disc which represents all the web pages and linked stuff on my mirrored web hoster server. All web pages and files are statically linked. So dynamically...
2
by: pedalpete | last post by:
Strange activity here, I was having some challenges with character encoding, and decided to just put html encoded characters in my DB, thinking they would be displayed properly when retrieved from...
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: 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
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.