473,850 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Find and Replace utility thru DTE.find

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/
Nov 15 '05 #1
0 2780

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: rbt | last post by:
Here's the scenario: You have many hundred gigabytes of data... possible even a terabyte or two. Within this data, you have private, sensitive information (US social security numbers) about your company's clients. Your company has generated its own unique ID numbers to replace the social security numbers. Now, management would like the IT guys to go thru the old data and replace as many SSNs with the new ID numbers as possible. You...
by: ianstratford | last post by:
I just released a new version of the free Microsoft Access find and replace add-in utility (version 1.5). Search and replace (optionally) any string in tables, queries, macros, forms, reports and modules in Access databases. The tool will now search and replace Report Group Levels (Thank you Judy). The new version also searches macros (logs results but does not
by: amit | last post by:
hi, 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 currently doing it with regex.match and thru streamreader class, but I believe it would be very time consuming, please reply ASAP to tell if there is a better solution or how can i optimize this code also. bye amit --- Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
by: amit | last post by:
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
by: Roger | last post by:
I'm having a little trouble using the Regex.Replace method. I am trying to perform a search and replace based on string pattern. I've been successful in replacing string from it's starting position to the end of the string value, however, I want to better define an ending position. Below follows the code I'm using: string a = "Hello, World, How are you?"; textBox1.Text = Regex.Replace(a, "W.*", "Mickey");
by: =?Utf-8?B?U3Vwcml5YQ==?= | last post by:
Oracle has a migration utility that lets you convert an application in Access to Oracle forms. See <http://www.oracle.com/technology/products/database/application_express/ viewlets/apex_quicktour_viewlet.html> Does Microsoft have a similar utility, one that can convert Access forms and reports to .Net ? I am looking at migrating an application built in Access to a .Net web application real fast without having to go thru' the whole...
by: Lengara | last post by:
I have an Access form that will be FTPing information. The FTP info will be using a text file located on the hard drive. This text file will have symbolics in it that will be replaced by entries on the Access form. I am looking for code to open a text file in the background and run a find/replace based on fields on the form. Thanks.
by: erbrose | last post by:
Hey all! been searching around the forum and google this morning looking for a simple way to parse thru a tab delinated file and do a find and replace. Here is what I've come up with so far as a script (Im still a newbie) #!/usr/bin/perl use strict; my $fileInput='d:/temp/test.txt'; my $fileOutput='d:/temp/Newtest.txt';
by: TTCEric | last post by:
In VB6, you just had available a Find dialog. Now, in .NET you have several options. "Find Symbol", "Quick Find" and "Quick Replace". None seem to do what I want: simply find some code. Inundated with all these options makes me think i'm picking the wrong things. But, you see, I dont want options. I just want to find a block of code (utter frustration here). Any pointers on getting it to work simply as the VB6 find utility? And whats...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.