I want to find out that if there is a mechanism to find a text inside a C# file and replace it with another string.
I am using DTE to do it, the find proerty does it, the results are getting displayed in a find results window pane , but I m not able to programmaticall y take the contents of the pane.
DTE.Find.FindWh at = "catch"
DTE.Find.Target = vsFindTarget.vs FindTargetFiles
DTE.Find.MatchC ase = False
DTE.Find.MatchW holeWord = False
DTE.Find.MatchI nHiddenText = True
DTE.Find.Patter nSyntax = vsFindPatternSy ntax.vsFindPatt ernSyntaxLitera l
DTE.Find.Search Path = "Current Project"
DTE.Find.Search Subfolders = True
DTE.Find.FilesO fType = "*.aspx.cs"
DTE.Find.Result sLocation = vsFindResultsLo cation.vsFindRe sults1
DTE.Find.Action = vsFindAction.vs FindActionFindA ll
DTE.Find.Execut e()
DTE.Windows.Ite m(Constants.vsW indowKindFindRe sults1).Activat e()
MsgBox(DTE.Acti veWindow.Captio n)
I am able to access the caption of that result pane but not the contents of that result pane.
---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/