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

Home Posts Topics Members FAQ

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 programmaticall y.

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).I temArray(0
Dim strPath = dsData.Tables(0 ).Rows(iData).I temArray(1
fullName = strPath & "\" & strNam
Tr
Dim activedoc As Window = dte.ItemOperati ons.OpenFile(fu llName
dte.Find.FindWh at = "FMTrace.GetCal lDesc
dte.Find.Target = vsFindTarget.vs FindTargetFile
dte.Find.MatchC ase = Fals
dte.Find.MatchW holeWord = Fals
dte.Find.MatchI nHiddenText = Tru
dte.Find.Patter nSyntax = vsFindPatternSy ntax.vsFindPatt ernSyntaxLitera
dte.Find.Search Path = fullNam
dte.Find.Search Subfolders = Tru
dte.Find.FilesO fType = "*.cs
dte.Find.Result sLocation = vsFindResultsLo cation.vsFindRe sultsNon
dte.Find.Action = vsFindAction.vs FindActionFin
' dte.Debugger.Go (True
' dte.Find.Execut e(

While (dte.Find.Execu te() = vsFindResult.vs FindResultFound
If Not (flag = 0) The
dte.ExecuteComm and("Edit.FindN ext"
End I
flag = flag +
Dim ReWinTest As Window = dte.Windows.Ite m(EnvDTE.Consta nts.vsWindowKin dFindReplace
ReWinTest.Close (
Dim txtSel As TextSelection = dte.ActiveDocum ent.Selectio
Dim objActive As VirtualPoint = txtSel.ActivePo in
txtSel.SelectLi ne(
Dim strGetCallDesc = txtSel.Tex
txtSel.Delete(
FindThrow(strGe tCallDesc, 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 2139

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

Similar topics

4
9902
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 ""type " & nwkfilepath & " > " & pPrinterName & " """
5
3670
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 these menus are then placed into the page by calling Server.Execute(rs_Modules("ModulePath")). This works fine for up to 15 "menus" After that, the session variables that were set (not including those called by Global.ASA) are no longer set. ...
10
3089
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, sugg4, sugg5) { display=window.open('','_blank','menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=150,width=190')
0
346
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
3
3041
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: http://www.vbcity.com/forums/search.asp?mode=doit The window title is:
5
3461
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 does this: reads user input with cin >>, and then inputs it in a variable, when you press enter, it starts executing code, based on your input.
0
1892
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 VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit 'Api Spy Example by PAT or JK 'Webpage: http://www.patorjk.com/
1
5155
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 using the following code (see eg below which uses just a new Notepad window), however I am struggling majorly trying to find the code to actually close the window. I can't even find code that will correctly return the PID of the window. Please help!...
0
2381
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 form that uses this component: System.Reflection.TargetInvocationException: Unable to get the window handle for the 'AxDHTMLEdit' control. Windowless ActiveX controls are not supported. Anyone who can help? thank you
0
9895
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, 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...
0
9741
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10666
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 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...
1
10724
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,...
0
10351
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 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...
0
9503
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, 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...
1
7899
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5735
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4546
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 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.