Results 1 to 2 of 2

Thread: Change disabled buttons appearance

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2011
    Posts
    12

    Question Change disabled buttons appearance

    Hi there,

    How do you maintain the appearance of a disabled button in VB.Net? Basically, when I click a button, I want its background colour and font colour to stay exactly the same as before I clicked it.

    I'm very new to this so a simple explanation would be appreciated! Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Change disabled buttons appearance

    It's a very bad idea to make a disabled control look the same as an enabled control. Visual cues like that change of appearance are very important to a user in a GUI application. Take those away and your application behaves in an unexpected manner, thus causing confusion for the user. That is never a good thing.

    If you really must do something like that then you'd have to draw the appearance of your Button yourself.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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