Results 1 to 2 of 2

Thread: Enabled when not visible?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Location
    Huntingdon Valley, PA 19006
    Posts
    1,151

    Enabled when not visible?

    What happens if the user clicks on an invisible command button?

    If a control is not visible, is it enabled?

    I sometimes want to prevent Command Button actions. I have been setting enabled to false, but think it would look better if the disaabled controls were invisible.

    Should I set both visible and enabled to false?
    Live long & prosper.

    The Dinosaur from prehistoric era prior to computers.

    Eschew obfuscation!
    If a billion people believe a foolish idea, it is still a foolish idea!
    VB.net 2010 Express
    64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    In my experience, if a control is invisible, it won't receive messages from user interaction (mouse clicks, key presses, etc). But I guess there is no harm in doing both if you are worried.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width