Help: How can I press a button?
-
How can I press a button in an windows application? I must press it and later, I must read the text of three textbox of this windows form...? I don't know, but i think that "Hook Messages" are the solution...? Please, I need help. Thanks. Italy
What I understand about your question will give this solution : in the development environment of Vosual Studio.Net double click on your button. This will bring you to the codepart of your windows form. An event is created for you (the click event). In here you can program everything that you want to do, like reading your 3 textboxes. Hopes this is the answer for your problem, otherwise give some more info in what you mean with press a button.
-
What I understand about your question will give this solution : in the development environment of Vosual Studio.Net double click on your button. This will bring you to the codepart of your windows form. An event is created for you (the click event). In here you can program everything that you want to do, like reading your 3 textboxes. Hopes this is the answer for your problem, otherwise give some more info in what you mean with press a button.
My problem is different. I need to create one application("New.exe"): with this event on Form1_Load: hIr = FindWindow("Ir", vbNullString) If IsWindow(hIr) = 0 Then Call Shell("Ir.exe", 1) Do Until IsWindow(hIr) hIr = FindWindow("Ir", vbNullString) DoEvents Loop End If It opens another application("IR.exe"), but I need push one button of IR.exe, it reads three textboxes and it prints the values in my new application. But in hide mode!! Italy