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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C#
13 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.
  • P Prajeesh

    [Message Deleted]

    E Offline
    E Offline
    Expert Coming
    wrote on last edited by
    #2

    Why?

    The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

    1 Reply Last reply
    0
    • P Prajeesh

      [Message Deleted]

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

      Is it only the delete-key, or are other keys also not working? You might want to check various KeyUp and KeyDown events.

      I are Draenei FireMage :wtf:

      P 1 Reply Last reply
      0
      • L Lost User

        Is it only the delete-key, or are other keys also not working? You might want to check various KeyUp and KeyDown events.

        I are Draenei FireMage :wtf:

        P Offline
        P Offline
        Prajeesh
        wrote on last edited by
        #4

        [Message Deleted]

        L 1 Reply Last reply
        0
        • P Prajeesh

          [Message Deleted]

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

          Prajeesh wrote:

          WHY?

          I don't know, but I can give some suggestions - if you don't shout :) The <del>-key removes the character on the right of the text if there is no selection. This default behaviour may be overriden in the KeyUp and KeyDown-events. Put a return statement on the first line of those events to check whether they cause it.

          I are out of Arcane Dust - No intellect bufs today :(

          P 1 Reply Last reply
          0
          • L Lost User

            Prajeesh wrote:

            WHY?

            I don't know, but I can give some suggestions - if you don't shout :) The <del>-key removes the character on the right of the text if there is no selection. This default behaviour may be overriden in the KeyUp and KeyDown-events. Put a return statement on the first line of those events to check whether they cause it.

            I are out of Arcane Dust - No intellect bufs today :(

            P Offline
            P Offline
            Prajeesh
            wrote on last edited by
            #6

            [Message Deleted]

            L 1 Reply Last reply
            0
            • P Prajeesh

              [Message Deleted]

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

              Will it "do" if you skip the KeyUp-event? E.g., if you put a "return" on the first line of the event, does the <del>-key work? There's an e.Handled that might eat your key :(

              I are troll :)

              P 1 Reply Last reply
              0
              • L Lost User

                Will it "do" if you skip the KeyUp-event? E.g., if you put a "return" on the first line of the event, does the <del>-key work? There's an e.Handled that might eat your key :(

                I are troll :)

                P Offline
                P Offline
                Prajeesh
                wrote on last edited by
                #8

                [Message Deleted]

                L 1 Reply Last reply
                0
                • P Prajeesh

                  [Message Deleted]

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

                  In what event did you put this code? Can you post your "entire" KeyUp?

                  Prajeesh wrote:

                  If I get the position I can remove the character.

                  You can get the position of the cursor by looking at the SelectionStart property. It will hold the location of the cursor in the text, whether there's a selection or not. Removing the character right to it might 'restore' the functionality. I suggest that you try to "fix" the code instead of looking for a workaround :)

                  I are troll :)

                  P 1 Reply Last reply
                  0
                  • L Lost User

                    In what event did you put this code? Can you post your "entire" KeyUp?

                    Prajeesh wrote:

                    If I get the position I can remove the character.

                    You can get the position of the cursor by looking at the SelectionStart property. It will hold the location of the cursor in the text, whether there's a selection or not. Removing the character right to it might 'restore' the functionality. I suggest that you try to "fix" the code instead of looking for a workaround :)

                    I are troll :)

                    P Offline
                    P Offline
                    Prajeesh
                    wrote on last edited by
                    #10

                    [Message Deleted]

                    L 1 Reply Last reply
                    0
                    • P Prajeesh

                      [Message Deleted]

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

                      Prajeesh wrote:

                      EditClear.ShortcutKeys = Keys.Delete;

                      Does the <del>-key work again if you comment out this line?

                      I are troll :)

                      P 1 Reply Last reply
                      0
                      • L Lost User

                        Prajeesh wrote:

                        EditClear.ShortcutKeys = Keys.Delete;

                        Does the <del>-key work again if you comment out this line?

                        I are troll :)

                        P Offline
                        P Offline
                        Prajeesh
                        wrote on last edited by
                        #12

                        [Message Deleted]

                        L 1 Reply Last reply
                        0
                        • P Prajeesh

                          [Message Deleted]

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

                          A nice workaround :) It could very well be that one of the buttons on the form has the <del> key set as a shortcut. That could eat the key, I suppose. Happy Programming!

                          I are troll :)

                          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