Web Browser how to programmatically select text on the webpage

  • Thread starter Thread starter Riyaz
  • Start date Start date
R

Riyaz

Hi all
I have a web browser on the form, there is a default url which gets
loaded when it starts. There is a particular label which i want to get
selected/highlighted automatically when the document is loaded.
I am using the following code but it does not work.
Can any one tell me where i am wrong.

Me.WebBrowser1.Document.All("smap2").SetAttribute("SELECTED", "true")

N.B. smap2 is the id of the label


Thanks
 
Back
Top