Results 1 to 37 of 37

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

Threaded View

  1. #9
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,909

    Re: Is it possible to make a ComboBox item non-selectable?

    Quote Originally Posted by AAraya View Post
    Is the subclassing code something you'd be able/willing to share?
    Ok, the attached project has all kinds of stuff in it you don't need, but it does have an example of ComboBox subclassing. I cut this code out of a much larger project that's been in production for many years.

    When cutting it out, I did try and preserve a semblance of organization. You'll see that in the three BAS modules I provided. Again, there's a lot there you may not need, and could carefully trim out.

    The ComboBox is in a UserControl (UC), as that's the only example I had. However, if you work through it, you could take that piece out. However, it's probably not a bad idea to just leave it as a UC, and mold mine into something that does what you're after.

    Good luck with it,
    Elroy
    Attached Files Attached Files
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

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
  •  



Click Here to Expand Forum to Full Width