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. C#
  4. question about C# find input text service!

question about C# find input text service!

Scheduled Pinned Locked Moved C#
questioncsharp
9 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.
  • A Offline
    A Offline
    abstar
    wrote on last edited by
    #1

    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

    C Mircea PuiuM 2 Replies Last reply
    0
    • A abstar

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • A abstar

        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

        Mircea PuiuM Offline
        Mircea PuiuM Offline
        Mircea Puiu
        wrote on last edited by
        #3

        [DllImport("user32")] public static extern int WindowFromPoint(int x, int y);

        SkyWalker

        C 1 Reply Last reply
        0
        • Mircea PuiuM Mircea Puiu

          [DllImport("user32")] public static extern int WindowFromPoint(int x, int y);

          SkyWalker

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          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

          Mircea PuiuM A 2 Replies Last reply
          0
          • C Christian Graus

            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

            A Offline
            A Offline
            abstar
            wrote on last edited by
            #5

            Can you give me some sample code? please!

            C 1 Reply Last reply
            0
            • C Christian Graus

              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

              Mircea PuiuM Offline
              Mircea PuiuM Offline
              Mircea Puiu
              wrote on last edited by
              #6

              my respect :rose:

              SkyWalker

              1 Reply Last reply
              0
              • C Christian Graus

                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

                A Offline
                A Offline
                abstar
                wrote on last edited by
                #7

                how can i use that? please sample code!

                A 1 Reply Last reply
                0
                • A abstar

                  Can you give me some sample code? please!

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • A abstar

                    how can i use that? please sample code!

                    A Offline
                    A Offline
                    abstar
                    wrote on last edited by
                    #9

                    come on

                    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