Show Data in ComboBox
-
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
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
-
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
-
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
-
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- )
-
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- )
-
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
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- )