Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to know how to insert horizontal line in HTML document (Web Browser Control) and a list of exec commands' command List

BTW i want to add bullet to a paragraph, but don't know how.
Posted

use :
HTML
<hr />

and for second problem!
HTML Lists
to add an element ...
http://msdn.microsoft.com/en-us/library/system.windows.forms.htmlelement.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2[^]
i hope this help you...
VB
'getting webbrowser content
Dim str As String = webBrowser1.DocumentText
'b is a integer to keep start index of sting that should insert into document
'PrevContent is a key string to add specified element after it 
'if you need to add hr after <span> text to add an hr after this </span>
Dim b As Integer = str.IndexOf(PrevContent) + PrevContent.Length
'insert an element in specified index
str = str.Insert(b, "<hr/>")
webBrowser1.DocumentText = str.ToString()


and this is for execCommand:
http://msdn.microsoft.com/en-us/library/bb212550(v=office.12).aspx[^]
 
Share this answer
 
v4
Comments
Ali Hojjati 5-Sep-13 15:55pm    
I need to do it throw VB.net Codes by execcommand.
ali_heidari_ 6-Sep-13 4:37am    
do you want to generate html code with vb.net into your webbrowser content?
Ali Hojjati 6-Sep-13 5:34am    
Yes
 
Share this answer
 

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