dcsimg
Results 1 to 37 of 37

Thread: [RESOLVED] Is it possible to make a ComboBox item non-selectable?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2011
    Location
    Palm Coast, FL
    Posts
    293

    Resolved [RESOLVED] Is it possible to make a ComboBox item non-selectable?

    I have a ComboBox loaded with items. One of the items is a separator bar. I don't want the user to be able to select this item. How would you prevent them from doing so? Ideally I'd like some way to make it non-selectable or disabled (is there an API that does this?).

    Sample CB items list
    =========
    1
    2
    3
    --- <--- Here's the separator bar
    4
    5
    6


    What I'm currently doing is changing the user's selection when they select the separator bar item. It works but it's a bit kludgey.

    TIA for your thoughts.

    (BTW - This is a VBCCR16 control so I do have additional properties and methods available to me over the standard VB6 version but I don't think it makes a difference for this issue.)
    Last edited by AAraya; Aug 1st, 2019 at 04:20 PM.

Tags for this Thread

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