.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Insert image in Web browser control in Windows forms

Posted By: Dhilip.R     Posted Date: June 09, 2011    Points:5   Category :C#
Hi,

How to insert an image in web browser control in windows forms.
I've tried to insert image by the following way

string htm = "<img src='" + Path + "' />";
webBrowser1.Document.Body.InnerHtml = htm;

But, it will not show the image.

I'm using C# windows forms.

Thanks & Regards
Dhilip.R

Responses
Author: Ravi Ranjan Kumar             
Posted Date: June 09, 2011     Points: 20   

You can try to display image in WebBrowser Control
    webBrowser1.Url = new Uri(@"Your Image Path");


Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com
Author: Dhilip.R             
Posted Date: June 09, 2011     Points: 20   

Hi, Ravi Ranjan Kumar

I want to append the image in the web browser.
Pls help

THanks for ur Reply

Author: Dhilip.R             
Posted Date: June 09, 2011     Points: 20   

Hi, Ravi Ranjan Kumar

I want to append the image in the web browser.
Pls help

THanks for ur Reply

Author: Sasi Prabhu             
Posted Date: June 09, 2011     Points: 20   

Try :

   webBrowser1.DocumentText = "<img src='" + Location + "' />";


Thanks & Regards,
Sasi Prabhu.
Author: lily             
Posted Date: March 06, 2014     Points: 20   

thanks, and with this image web viewer control, you can insert, view and read image as well
http://www.rasteredge.com/how-to/asp-net-imaging/imaging-viewing/

Author: mattyclown             
Posted Date: May 21, 2014     Points: 20   

Why not create an ASP.NET web image viewer?

http://www.rasteredge.com/how-to/vb-net-imaging/create-web-viewer/




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend