CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Posts
    95

    cbo upredictable behavior

    Hi....
    I have several comboboxs on my form... all of them with style property 2 - DropDownList. I read in MSDN Library that when that was the case the text property was read-only. However, on most of the cbo's I can set the text property when the form loads. But on two of them I cannot. Has anyone else experience anything similar? Or does anyone know the reason why?

    Thanks.


  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: cbo upredictable behavior

    The text can be set, but what you set it to MUST be in the list.

    David Paulson


  3. #3
    Join Date
    Apr 2001
    Posts
    95

    Re: cbo upredictable behavior

    Right...

    I just relized that I was trying to set the value BEFORE I added the listitems :-) DUH...

    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

Featured