473,406 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 2090

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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
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...
0
tracyyun
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...
0
agi2029
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,...

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.