Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to add a video file in winform application in using system.Windows.Forms.WebBrowser control?
I am using the below code to insert an image file but, I am got stuck while adding video.
can any one help me out.

Dim designDoc As mshtml.IHTMLDocument2

VB
Browser_Design.DocumentText += ""
            designDoc = DirectCast(Browser_Design.Document.DomDocument, mshtml.IHTMLDocument2)
            designDoc.designMode = "On"


on buttonclick event:

designDoc.execCommand("InsertImage", True, Nothing)

Thanks,
neelam
Posted
Comments
Sergey Alexandrovich Kryukov 7-May-13 15:20pm    
The whole idea of "adding" the video file to WebBrowser is wrong. What are you trying to achieve?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900