472,809 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,809 software developers and data experts.

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

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

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

Similar topics

4
by: Kartik | last post by:
Hi, I have an ASP.NET application using VB.NET.I am sending a DOS command to a machine on the network to print a file. This is achieved using xp_cmdshell Dim str As String = "xp_cmdshell...
5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
10
by: soup_or_power | last post by:
The pop up window has several checkboxes. I'm unable to access the checkboxes using the handle from window.open. Any way to do this? var display; function showSugg(but_id, sugg1, sugg2, sugg3,...
0
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...
3
by: Thief_ | last post by:
I need to use an existing IE window which already has a specific url and re-use that window for a new URL. Example: One open IE window has the following in its Address Bar: ...
5
by: sverdloff | last post by:
Hey guys, I've just started in a programming company, and meet some difficulties, as I start from scratch..... I have a command line program I've wrote, and want to transfer it to GUI. It...
0
by: kloplop321 | last post by:
I found this code(vb only) and it does about the same thing(in vb, not vb .NET 2005) Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute...
1
by: wormsnout | last post by:
Hi all, I'm looking to write some Visual Basic .NET code to find a Window given its Caption and then kill it entirely (not just minimise it). I think I have found the correct Windows Handle...
0
by: DevilInside | last post by:
Hi I'm using in my C# application the component DHTMLEdit. This component works great until I install it on another computer via a setup file. I always get this error when I'm trying to open a...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.