473,395 Members | 1,335 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,395 software developers and data experts.

Can you get the window handles/contents of controls with VB.net?

rob
Hello,
I would like to create a VB.net program that can grab the
text/contents inside a control (like a label control) in an external
program (one I didnt make).

The scenario is this:
The program I want this data from is one that we use daily. One of
it's controls shows the customer's ID (which is the primary key on the
database) I would like to be able to

1) mouseover/click on that control and get the window handle and text
in that control which my app can then use to retrieve the files
associated with the contents of that control.

OR

2) have my app sense when that control's contents change and do the
same thing as above.

I know how to get the main window handle of this application, and I
have seen many refrerences to a API function called
EnumChildWindows().

I have looked up this function on MSDN, but I cant determine how to
get values returned from it.

I know I am missing something, clearly- but I cant find the
documentation I need.

Is this possible with VB.net? I have seen a few references to a
product called Spyworks, but I would like to learn how to do this on
my own.

I dont really need to control this other program-- just be able to get
text from a specific area of the main window.

I know there are some posts here that indicate others are looking for
similar info- but I really just need to get that EnumChildWindows
function to return some info...

Any info is appreciated.

Rob
Jul 21 '05 #1
1 2222
You still out there? I could try and put something together for you.
I have VB 6.0 code that would accomplish that, but have not tried from C#.

-Eric
Jul 21 '05 #2

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

Similar topics

4
by: Altramagnus | last post by:
I have 30 - 40 type of different window. For each type I need about 20 instances of the window. When I try to create them, I get "Error creating window handle" My guess is there is a maximum...
2
by: Novice | last post by:
Hi all, as you can see from the subject, I'm try to use an asp:button to create a new browser window and output contents to new window But default if I do the Response.Write("..." The output...
1
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for...
9
by: Max | last post by:
Hello, Using VB.NET, I can activate an application by entering: AppActivate(intProcessID), where intProcessID is the process ID of a running application. Is it possible to set the size and...
2
by: Bert Szoghy | last post by:
Hello, I am missing something about Visual Basic .NET module variables and window close events. In the following code, after opening Form2 by clicking a button on Form1 and then closing...
1
by: rob | last post by:
Hello, I would like to create a VB.net program that can grab the text/contents inside a control (like a label control) in an external program (one I didnt make). The scenario is this: The...
2
by: ngr | last post by:
I have come across a problem because I have too many controls on a form. It says that it cannot create a handle. Now I know that there is a limit of how many windows handles which can be used...
2
by: Jonathan Boivin | last post by:
Hi people, Let me introduce to how I get this error. I have a form which load all my bills representation depending upon filters which each bill is a usercontrol of my own having some...
8
by: Phil | last post by:
Is it possible to find the size of the MDIClient area, excluding the space already used by docked controls? I have thought I could perhaps create a new control, set it's Dock property to Fill and...
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: 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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.