Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 27th, 2006, 04:20 AM
Registered User
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to retrieve control's "Name" and "Value" in an

How to get the name and value of the control belonging to window in some other program?
Currently I am trying it with Win32 APIs. Here are the steps I am foloowing.

1) I am using 'FindWindow' function to retrieve the Handle for the target window.
2) Then I am using 'EnumChildWindows' to get the controls in the traget window.
3) Then I am using 'WM_GETTEXT' in 'SendMessage' function to get the value for the control.

But I also need name of the control so that I can Identify what control has what value. What function can be used to get the name of the control? How to achieve this using Win32 APIs?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically Altering a Child Control's Method forkbeard ASP.NET 2.0 Professional 2 May 15th, 2007 07:13 PM
Problem at Custom control's OnDataBinding r_taduri ASP.NET 1.0 and 1.1 Professional 0 July 1st, 2006 06:41 AM
Can I get a Web Control's Variable Name? MAtkins ASP.NET 1.0 and 1.1 Professional 6 October 2nd, 2005 01:01 PM
setting a web control's ID programatically lcsgeek General .NET 3 January 24th, 2005 02:50 PM
How to change filefield control's button text? shenliujun Javascript How-To 1 July 20th, 2004 12:05 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.