Problems in Getting Windows Handle  
Author Message
Srikanth Raghupathy





PostPosted: Common Language Runtime, Problems in Getting Windows Handle Top

Hi,

I am trying to use External methodologies (simulating keystrokes etc ) to fill out forms in an applications based on data colleceted from other sources such as RFID etc.

I need a mechanism to identify the corresponding control say a textbox in a windows form.

is there any specific way in which i can get an handle for a control in a form for example FindWindow(string lpClassName,string lpWindowName) in user32.dll gets me the handle for a window, is there a way i can get the handle for a control in a window.

if there are no specific ways to do it pls do suggest some alternatives.

pls help.

Thanks and Regards

Srikanth




.NET Development36  
 
 
Mattias Sjogren





PostPosted: Common Language Runtime, Problems in Getting Windows Handle Top

You can use FindWindowEx to find the control handle. There are also other options such as EnumChildWindows, GetWindow etc.