question about C# find input text service!
-
hi guys i have about this if i click on textbox in any program such as Msn messager or notepad etc. how do i find them by using C#? thanks
You want to find the textbox control ? There are windows APIs for that, you can PInvoke them in C#. I think it's WindowFromPoint, or something like that.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
hi guys i have about this if i click on textbox in any program such as Msn messager or notepad etc. how do i find them by using C#? thanks
[DllImport("user32")] public static extern int WindowFromPoint(int x, int y);
SkyWalker
-
[DllImport("user32")] public static extern int WindowFromPoint(int x, int y);
SkyWalker
Woo Hoo - my guess was right !! What do I win ?
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
You want to find the textbox control ? There are windows APIs for that, you can PInvoke them in C#. I think it's WindowFromPoint, or something like that.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
Woo Hoo - my guess was right !! What do I win ?
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
my respect :rose:
SkyWalker
-
Woo Hoo - my guess was right !! What do I win ?
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
Does google not work where you live ? The API just takes a point ( well, an X and a Y ), and it returns a HWND ( so, what's returned needs to be an IntPtr and you create a control, and set the Handle property to be the return value, to get a instance of the control. If you google for C++ help, then you'll find all the help you need, if you add the bits I just told you. You know, just because we know how to find info, that doesn't mean we've used this API. I've never written C# code that uses WindowToPoint.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert