3.0/LINQ [RESOLVED] windows form control-VBForums
Results 1 to 3 of 3

Thread: [RESOLVED] windows form control

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    Resolved [RESOLVED] windows form control

    There are two combo boxes on the windows form.
    Inside the code depending on the click event of a button they both become enabled or disabled i.e.

    cbo1.enabled = true;
    cbo2.enabled = true;

    or

    cbo1.enabled = false;
    cbo2.enabled = false;


    When they are disabled, cbo2 is greyed out but although cbo1 is not changable (i.e. it is disabled) cbo1 has a white background and only the text inside it is greyed out. cbo1 is not completely greyed out as same as cbo2.

    Backcolor of both controls is set to Window in design mode
    Forecolor of both controls is set to WindowText in design mode

    Question:
    Do you know why the cbo1 is not completely greyed out?
    Thanks

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    87,858

    Re: windows form control

    Do they have the same value for DropDownStyle?

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    Re: windows form control

    Quote Originally Posted by jmcilhinney View Post
    Do they have the same value for DropDownStyle?
    That was the issue.
    Thanks

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.