Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Show Data in ComboBox

Show Data in ComboBox

Scheduled Pinned Locked Moved C / C++ / MFC
c++designtutorial
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bhat
    wrote on last edited by
    #1

    Hi I am using VS6 Using Win32 Application in VC++ at design time i insert some data in combobox when i run the same.....it is not displaying data ..... tell me how to do it

    AbidBhat

    D 1 Reply Last reply
    0
    • B bhat

      Hi I am using VS6 Using Win32 Application in VC++ at design time i insert some data in combobox when i run the same.....it is not displaying data ..... tell me how to do it

      AbidBhat

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      abid wrote:

      it is not displaying data .....

      How are you verifying this? Do you have the combobox's height set correctly?

      "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      B 1 Reply Last reply
      0
      • D David Crow

        abid wrote:

        it is not displaying data .....

        How are you verifying this? Do you have the combobox's height set correctly?

        "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        B Offline
        B Offline
        bhat
        wrote on last edited by
        #3

        how to set the height of the combo box

        AbidBhat

        D D 2 Replies Last reply
        0
        • B bhat

          how to set the height of the combo box

          AbidBhat

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Using the resource editor. Since a combobox is two controls acting as one, the sizing for each is separated. Click the edit control to size it, and click the dropdown arrow to size the listbox control.

          "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          1 Reply Last reply
          0
          • B bhat

            how to set the height of the combo box

            AbidBhat

            D Offline
            D Offline
            Demian Panello
            wrote on last edited by
            #5

            At design, click over the down arrow of the combo, (the cursor turns in a double arrow), you will see that the bottom selection point of the combo it turns blue, then drag it down to the desire size. Yep, it's something tricky.

            Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )

            B 1 Reply Last reply
            0
            • D Demian Panello

              At design, click over the down arrow of the combo, (the cursor turns in a double arrow), you will see that the bottom selection point of the combo it turns blue, then drag it down to the desire size. Yep, it's something tricky.

              Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )

              B Offline
              B Offline
              bhat
              wrote on last edited by
              #6

              but it only expand in size in run time............and does not display the data which i have inserted in it at design time

              AbidBhat

              D 1 Reply Last reply
              0
              • B bhat

                but it only expand in size in run time............and does not display the data which i have inserted in it at design time

                AbidBhat

                D Offline
                D Offline
                Demian Panello
                wrote on last edited by
                #7

                Yes that's right. And why you need your data in design time? You can't do anything with your data at design time. It's just "Design". What are you trying to do?

                Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups