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. Tool bar buttons remain pressed

Tool bar buttons remain pressed

Scheduled Pinned Locked Moved C#
questionannouncement
3 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.
  • S Offline
    S Offline
    sumeat
    wrote on last edited by
    #1

    Hi, I have a tool bar in my app, from which the user can drag components on to the a form. This works fine except that after dragging a control from the toolbar, once the mouse leaves the tool bar area the corresponding button remains in pressed state and will not become normal until the mouse is brought back on the tool bar. I want the button to become normal as soon as the mouse is release(on the form or elsewhere!) Any ideas? Thanks

    J 1 Reply Last reply
    0
    • S sumeat

      Hi, I have a tool bar in my app, from which the user can drag components on to the a form. This works fine except that after dragging a control from the toolbar, once the mouse leaves the tool bar area the corresponding button remains in pressed state and will not become normal until the mouse is brought back on the tool bar. I want the button to become normal as soon as the mouse is release(on the form or elsewhere!) Any ideas? Thanks

      J Offline
      J Offline
      joan_fl
      wrote on last edited by
      #2

      I'll ask the obvious... Check if the button type is a toggle sytle. ------------------------------- Joan MomComputerGeek.com

      S 1 Reply Last reply
      0
      • J joan_fl

        I'll ask the obvious... Check if the button type is a toggle sytle. ------------------------------- Joan MomComputerGeek.com

        S Offline
        S Offline
        sumeat
        wrote on last edited by
        #3

        This happens even with button style being set to either toggle or pushbutton

        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