Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Help: How can I press a button?

Help: How can I press a button?

Scheduled Pinned Locked Moved Visual Basic
questionhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rdges
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • R rdges

      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

      S Offline
      S Offline
      Sven Cipido
      wrote on last edited by
      #2

      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.

      L 1 Reply Last reply
      0
      • S Sven Cipido

        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.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups