Results 1 to 3 of 3

Thread: [RESOLVED] windows form control

Hybrid View

  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
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: windows form control

    Do they have the same value for DropDownStyle?

  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
  •  



Click Here to Expand Forum to Full Width