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. Space Key problem

Space Key problem

Scheduled Pinned Locked Moved C#
questionhelp
8 Posts 4 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.
  • M Offline
    M Offline
    mihksoft
    wrote on last edited by
    #1

    Hy I want to know how can I send a space with SendKey.Send? thx

    J 1 Reply Last reply
    0
    • M mihksoft

      Hy I want to know how can I send a space with SendKey.Send? thx

      J Offline
      J Offline
      Justin Perez
      wrote on last edited by
      #2

      SendKeys.Send(Keys.Space);

      I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

      M 1 Reply Last reply
      0
      • J Justin Perez

        SendKeys.Send(Keys.Space);

        I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

        M Offline
        M Offline
        mihksoft
        wrote on last edited by
        #3

        Doesn't work. The SendKey.Send receive a string parameter not a Keys

        P J 2 Replies Last reply
        0
        • M mihksoft

          Doesn't work. The SendKey.Send receive a string parameter not a Keys

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          In that case, how about SendKeys.Send(" ");?

          Deja View - the feeling that you've seen this post before.

          1 Reply Last reply
          0
          • M mihksoft

            Doesn't work. The SendKey.Send receive a string parameter not a Keys

            J Offline
            J Offline
            Justin Perez
            wrote on last edited by
            #5

            My bad. Tack a ToString() to the end of that

            I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

            M 1 Reply Last reply
            0
            • J Justin Perez

              My bad. Tack a ToString() to the end of that

              I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

              M Offline
              M Offline
              mihksoft
              wrote on last edited by
              #6

              Doesn't work. If I put SendKey.Send(" ") it put me more than one space and the application freeze for few moments. If I put SendKey.Send(Keys.Space.ToString()) it put me many SpaceSpaceSapce and the program will not stop

              J L 2 Replies Last reply
              0
              • M mihksoft

                Doesn't work. If I put SendKey.Send(" ") it put me more than one space and the application freeze for few moments. If I put SendKey.Send(Keys.Space.ToString()) it put me many SpaceSpaceSapce and the program will not stop

                J Offline
                J Offline
                Justin Perez
                wrote on last edited by
                #7

                try SendKeys.Send("{SPACE}");

                I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

                1 Reply Last reply
                0
                • M mihksoft

                  Doesn't work. If I put SendKey.Send(" ") it put me more than one space and the application freeze for few moments. If I put SendKey.Send(Keys.Space.ToString()) it put me many SpaceSpaceSapce and the program will not stop

                  L Offline
                  L Offline
                  leppie
                  wrote on last edited by
                  #8

                  mihksoft wrote:

                  If I put SendKey.Send(Keys.Space.ToString()) it put me many SpaceSpaceSapce and the program will not stop

                  It's pretty clear you doing it 3 times then! So use SendKey.Send(" ") and make sure it happens only once (which it is not doing).

                  **

                  xacc.ide-0.2.0.77 - now with C# 3.5 support and Navigation Bar!^
                  New xacc.ide release RSS feed^

                  **

                  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