468,505 Members | 1,592 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

Find.execute , unable to find a handle to a window

I have created a tool which does a find and replace thru DTE, now after it is done, it opens up a window, "FIND REACHED THE STARTING POINT OF SEARCH"

I want to disbale this window programmatically.

how should i do it

this is a partial code

Dim dsData As DataSe
dsData = getFiles() // this is a method which retrieves the filenames and path from DB
Dim iData As Intege
Dim flag As Intege

While (dsData.Tables(0).Rows.Count > iData
Dim dte As New DTE(
Dim usrEditPoint As EditPoin
Dim fullName As Strin
Dim strName = dsData.Tables(0).Rows(iData).ItemArray(0
Dim strPath = dsData.Tables(0).Rows(iData).ItemArray(1
fullName = strPath & "\" & strNam
Dim activedoc As Window = dte.ItemOperations.OpenFile(fullName
dte.Find.FindWhat = "FMTrace.GetCallDesc
dte.Find.Target = vsFindTarget.vsFindTargetFile
dte.Find.MatchCase = Fals
dte.Find.MatchWholeWord = Fals
dte.Find.MatchInHiddenText = Tru
dte.Find.PatternSyntax = vsFindPatternSyntax.vsFindPatternSyntaxLitera
dte.Find.SearchPath = fullNam
dte.Find.SearchSubfolders = Tru
dte.Find.FilesOfType = "*.cs
dte.Find.ResultsLocation = vsFindResultsLocation.vsFindResultsNon
dte.Find.Action = vsFindAction.vsFindActionFin
' dte.Debugger.Go(True
' dte.Find.Execute(

While (dte.Find.Execute() = vsFindResult.vsFindResultFound
If Not (flag = 0) The
End I
flag = flag +
Dim ReWinTest As Window = dte.Windows.Item(EnvDTE.Constants.vsWindowKindFind Replace
Dim txtSel As TextSelection = dte.ActiveDocument.Selectio
Dim objActive As VirtualPoint = txtSel.ActivePoin
Dim strGetCallDesc = txtSel.Tex
FindThrow(strGetCallDesc, fullName, strPath, strName
End Whil
dte = Nothin
Catch ex As Exceptio

End Tr
iData = iData +
End Whil

now when the find is over , it says a message

find has reached the starting point of search

which we also get in our devenv generally.

pls let me know urgentl


amit purohit

Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
Nov 15 '05 #1
0 1846

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by soup_or_power | last post: by
5 posts views Thread by sverdloff | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.