ComboBox on a Tab Control

Posted on 2005-04-12
Last Modified: 2010-04-23
I've got a combobox on a tab control with its draw mode set to OwnerDrawVariable.

When the combobox is on the tab control, i can't see the items.

If i take it off the tab control onto the main form, i can see the items.

Any ideas what i need to do here ??
Question by:mpdalton
    LVL 32

    Accepted Solution

    What do you have in your DrawItem procedure?
    LVL 3

    Author Comment

    i've found the problem, it was the way i was doing an auto hookup, because the tab control has tabs within it, the combobox was 3 levels down from the main form and i was doing hookups down 2 levels.

    seeing that the DrawItem wasn't getting called pointed me in the right direction.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    This video discusses moving either the default database or any database to a new volume.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now