Click here to Skip to main content
15,907,493 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: array Pin
Christian Graus25-Aug-07 20:35
protectorChristian Graus25-Aug-07 20:35 
GeneralRe: array Pin
WhiteGirl2326-Aug-07 4:02
WhiteGirl2326-Aug-07 4:02 
Questioncreating inherited custom control Pin
babucherayath25-Aug-07 1:46
babucherayath25-Aug-07 1:46 
QuestionCLASSES & INHERITENCE Pin
RaveRare24-Aug-07 22:18
RaveRare24-Aug-07 22:18 
AnswerRe: CLASSES & INHERITENCE Pin
Rupesh Kumar Swami24-Aug-07 22:29
Rupesh Kumar Swami24-Aug-07 22:29 
AnswerRe: CLASSES & INHERITENCE Pin
Christian Graus25-Aug-07 0:45
protectorChristian Graus25-Aug-07 0:45 
AnswerRe: CLASSES & INHERITENCE Pin
DigiOz Multimedia25-Aug-07 12:27
DigiOz Multimedia25-Aug-07 12:27 
QuestionSearch function in webbrowser Pin
Ahmad Zaidi24-Aug-07 21:29
Ahmad Zaidi24-Aug-07 21:29 
Hi,

I need to make a custom search function in webbrowser control. I found the following post somewhere:
WebBrowser1.Navigate("c:\readme.htm")

Dim htmldom As mshtml.IHTMLDocument2 = CType(WebBrowser1.Document.DomDocument, mshtml.IHTMLDocument2)

htmldom.execCommand("SelectAll", False, Nothing)

htmldom.execCommand("Copy", False, Nothing)

Dim str As String = Clipboard.GetText

Dim range1 As mshtml.IHTMLTxtRange = CType(htmldom.selection.createRange(), mshtml.IHTMLTxtRange)

range1.findText("microsoft", 0, 0)// 0,0 means the first hit, 1,1 second hit like this.....

range1.select()

The problem is that it doesnt seem to select all occurances in the page, e.g. if I search the wikipedia page on Stalin for "stalin", it will move between two instances of the word on the page and not go to the rest. I have replaced the two 0s in the findtext method with a variable counter initially set to zero. Anyone have an idea as to what the problem could be?

Thanks!
Ahmad
AnswerRe: Search function in webbrowser Pin
Luc Pattyn24-Aug-07 23:53
sitebuilderLuc Pattyn24-Aug-07 23:53 
AnswerRe: Search function in webbrowser Pin
Dave Kreskowiak25-Aug-07 7:18
mveDave Kreskowiak25-Aug-07 7:18 
GeneralRe: Search function in webbrowser Pin
Ahmad Zaidi25-Aug-07 10:48
Ahmad Zaidi25-Aug-07 10:48 
GeneralRe: Search function in webbrowser Pin
Dave Kreskowiak26-Aug-07 4:19
mveDave Kreskowiak26-Aug-07 4:19 
Questionwill IE plugins which are already installed work in shDOCvw.dll 's webbrowser Pin
Vivek Narayanan24-Aug-07 21:10
Vivek Narayanan24-Aug-07 21:10 
AnswerRe: will IE plugins which are already installed work in shDOCvw.dll 's webbrowser Pin
Dave Kreskowiak25-Aug-07 6:59
mveDave Kreskowiak25-Aug-07 6:59 
AnswerRe: will IE plugins which are already installed work in shDOCvw.dll 's webbrowser Pin
Ahmad Zaidi25-Aug-07 10:52
Ahmad Zaidi25-Aug-07 10:52 
QuestionVB and SQL Editions Pin
Dreamer200724-Aug-07 20:49
Dreamer200724-Aug-07 20:49 
AnswerRe: VB and SQL Editions Pin
Christian Graus24-Aug-07 21:38
protectorChristian Graus24-Aug-07 21:38 
GeneralRe: VB and SQL Editions Pin
Dreamer200725-Aug-07 1:13
Dreamer200725-Aug-07 1:13 
GeneralRe: VB and SQL Editions Pin
Christian Graus25-Aug-07 1:34
protectorChristian Graus25-Aug-07 1:34 
AnswerRe: VB and SQL Editions Pin
Dave Kreskowiak25-Aug-07 6:56
mveDave Kreskowiak25-Aug-07 6:56 
Question[Message Deleted] Pin
ncjlee24-Aug-07 20:32
ncjlee24-Aug-07 20:32 
AnswerRe: Visual Basic Evaluator Problem...VB 2005 express Pin
Christian Graus24-Aug-07 21:40
protectorChristian Graus24-Aug-07 21:40 
GeneralRe: Visual Basic Evaluator Problem...VB 2005 express Pin
ncjlee24-Aug-07 22:38
ncjlee24-Aug-07 22:38 
GeneralRe: Visual Basic Evaluator Problem...VB 2005 express Pin
Luc Pattyn24-Aug-07 23:54
sitebuilderLuc Pattyn24-Aug-07 23:54 
GeneralRe: Visual Basic Evaluator Problem...VB 2005 express Pin
ncjlee24-Aug-07 23:59
ncjlee24-Aug-07 23:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.