473,385 Members | 1,893 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,385 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 2086

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
marktang
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,...
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,...

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.