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. TextBox disabling Middle-Scroll.

TextBox disabling Middle-Scroll.

Scheduled Pinned Locked Moved C#
helpcsharpquestion
7 Posts 2 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.
  • B Offline
    B Offline
    Baeltazor
    wrote on last edited by
    #1

    Hey there :) I'm experiencing a little problem over here... In NotePad, when the scrollbars are visible I can use my middle mouse button to scroll horizontally or vertically, but when I create my own Text Editor in C#, this does not work. I can see for a split second the circular scroller thing appear but then it dissappears right away. Does anybody know a way to fix this?

    X 1 Reply Last reply
    0
    • B Baeltazor

      Hey there :) I'm experiencing a little problem over here... In NotePad, when the scrollbars are visible I can use my middle mouse button to scroll horizontally or vertically, but when I create my own Text Editor in C#, this does not work. I can see for a split second the circular scroller thing appear but then it dissappears right away. Does anybody know a way to fix this?

      X Offline
      X Offline
      Xmen Real
      wrote on last edited by
      #2

      make sure textbox has focus as well as middle mouse is not pressed

      TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

      ----------------------------------------------- 128 bit encrypted signature, crack if you can

      B 1 Reply Last reply
      0
      • X Xmen Real

        make sure textbox has focus as well as middle mouse is not pressed

        TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

        ----------------------------------------------- 128 bit encrypted signature, crack if you can

        B Offline
        B Offline
        Baeltazor
        wrote on last edited by
        #3

        Thank you for your reply. I think I understand what you meant. I just went and made a change. I added textBox1.Focus(); to the code when I create the TextBox. but it still doesn't work. Do you know what causes this problem?

        Regards, Jason Pezzimenti.


        If you liked the answer that I have provided, then please click the 'Good Answer' link on the bottom-right of this post. Thank you.

        X 1 Reply Last reply
        0
        • B Baeltazor

          Thank you for your reply. I think I understand what you meant. I just went and made a change. I added textBox1.Focus(); to the code when I create the TextBox. but it still doesn't work. Do you know what causes this problem?

          Regards, Jason Pezzimenti.


          If you liked the answer that I have provided, then please click the 'Good Answer' link on the bottom-right of this post. Thank you.

          X Offline
          X Offline
          Xmen Real
          wrote on last edited by
          #4

          use RichTextBox instead

          TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

          ----------------------------------------------- 128 bit encrypted signature, crack if you can

          B 1 Reply Last reply
          0
          • X Xmen Real

            use RichTextBox instead

            TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

            ----------------------------------------------- 128 bit encrypted signature, crack if you can

            B Offline
            B Offline
            Baeltazor
            wrote on last edited by
            #5

            Ah, the good ol' RTB... My Arch Nemesis. The thing that would never save as PlainText. lol Thanks :)

            Regards, Jason Pezzimenti.


            If you liked the answer that I have provided, then please click the 'Good Answer' link on the bottom-right of this post. Thank you.

            X 1 Reply Last reply
            0
            • B Baeltazor

              Ah, the good ol' RTB... My Arch Nemesis. The thing that would never save as PlainText. lol Thanks :)

              Regards, Jason Pezzimenti.


              If you liked the answer that I have provided, then please click the 'Good Answer' link on the bottom-right of this post. Thank you.

              X Offline
              X Offline
              Xmen Real
              wrote on last edited by
              #6

              well, If I need to have large text with scrolling then textbox will be that the last thing I would think of.

              TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

              ----------------------------------------------- 128 bit encrypted signature, crack if you can

              B 1 Reply Last reply
              0
              • X Xmen Real

                well, If I need to have large text with scrolling then textbox will be that the last thing I would think of.

                TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                ----------------------------------------------- 128 bit encrypted signature, crack if you can

                B Offline
                B Offline
                Baeltazor
                wrote on last edited by
                #7

                Yeah, that's understandable. Thanks for your help Xmen W.K. :) I'll go and whip out my good old RTB and see what I can do :-D

                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