Display a html file on a form

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2005
Posts: 3
Reputation: yda is an unknown quantity at this point 
Solved Threads: 0
yda yda is offline Offline
Newbie Poster

Display a html file on a form

 
0
  #1
May 11th, 2005
I need a control to put on a window form to show a web page from a url.
Is there such a control in the .net framework.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 26
Reputation: Stivi is an unknown quantity at this point 
Solved Threads: 0
Stivi's Avatar
Stivi Stivi is offline Offline
Light Poster

Re: Display a html file on a form

 
0
  #2
Jun 15th, 2005
Hi,
yeah, you can use the "webBrowser" component. If you don't have this component in your toolbox, just click on the empty place on your toolbox with right mouse button, then "Choose items" and choose the "webBrowser" component. That's how it is in Visual Studio 2005, but I think it'll be quite similar in VS .net, too.

Example:

webBrowser1.Navigate("www.microsoft.com");
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Display a html file on a form

 
0
  #3
Jun 16th, 2005
Just a note, the webbrowser control is in fact an ecapsulation of the Internet Explorer browser. This allows you to do some unique things. For example, the html you display could contain hyperlinks, and you can overload the Navigate event. So when a user clicks a hyperlink, instead of navigating, you can do whatever you like.

One application I wrote was to display PDF phone statements, with live hyperlinks (I used PostScript and pdfMark programming to create the PDFs w/ hyperlinks).

The PDF was displayed in a web browser control on a windows form. When the call center operator clicked on a given line in the statement, the code captured that event and link to run a query, popping up the call details in a new window.

This let the phone company use the PDF of the exact statement the customer recieved, as an interface back to call data.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 3
Reputation: yda is an unknown quantity at this point 
Solved Threads: 0
yda yda is offline Offline
Newbie Poster

Re: Display a html file on a form

 
0
  #4
Jun 18th, 2005
Thanks but if Im using VS.NET 2003
what can I do ?
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2
Reputation: Tiendq is an unknown quantity at this point 
Solved Threads: 0
Tiendq Tiendq is offline Offline
Newbie Poster

Re: Display a html file on a form

 
0
  #5
Jun 25th, 2005
Use can use Web Broser control in VS.NET 2003 too,
Right click on Toolbox, select Customize, select COM Components tab, look for Microsoft Web Browser.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 3
Reputation: yda is an unknown quantity at this point 
Solved Threads: 0
yda yda is offline Offline
Newbie Poster

Re: Display a html file on a form

 
0
  #6
Jun 25th, 2005
Thanks Rhats great !!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC