hi
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
Tr
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
dte.ExecuteCommand("Edit.FindNext"
End I
flag = flag +
Dim ReWinTest As Window = dte.Windows.Item(EnvDTE.Constants.vsWindowKindFind Replace
ReWinTest.Close(
Dim txtSel As TextSelection = dte.ActiveDocument.Selectio
Dim objActive As VirtualPoint = txtSel.ActivePoin
txtSel.SelectLine(
Dim strGetCallDesc = txtSel.Tex
txtSel.Delete(
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
regard
amit purohit
---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/