how to add a text dynamically in combo box?
-
Hello everyone.. i tried with TRACE command other than that give me some ideas.. vikram
-
Hello everyone.. i tried with TRACE command other than that give me some ideas.. vikram
-
Hello everyone.. i tried with TRACE command other than that give me some ideas.. vikram
You can use of
InsertString(1,"String")
orAddString("String")
.
WhiteSky
-
CComboBox m_cmbBox1; CString str;//u have to write ur text to this str m_cmbBox1.AddString(str);
thank u so much.. i tried with this also. and another question if i type a string in edit box . it should b placed in that combo box..
-
Hello everyone.. i tried with TRACE command other than that give me some ideas.. vikram
vikramkarthik wrote:
i tried with TRACE command...
Why in the world would you think that
TRACE()
would be used for updating a combobox? Since you are using MFC, use ClassWizard (Ctrl+W) to assign a CComboBox member variable to the control. When you are ready to update the control, useCComboBox::AddString()
orCComboBox::InsertString()
.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne