Coding for Inserting Combo Box right

Coding for Inserting Combo Box right

Post by TmV3YmllIC » Wed, 20 Dec 2006 14:00:01

Hi, I look in the msdn and found an application demo call enroll. URL -->

If I want to populate the combo box with info, all it need is to put the
following code is it

void CSpace::OnInitialUpdate() // CSpace is my CRecordView
m_pSet = &GetDocument()->m_databaseInfo;

CIppcmDoc* pDoc = GetDocument();

// m_3D.ResetContent();
while (!pDoc->m_databaseInfo.IsEOF())
// m_3D.SetCurSel(0);


1. how to edit a combo box or how to insert items in a combo box?

2. Setting the size of column widths of a combo box through Code and Searching Combo Box

I have a combo box on a form which is based on table tblMachine. On that
combo box I have four columns visible MachineNumber, description, location
and type. The bound column is the MachineNumber and this is not set to 0 as
the machines have its number on which means the user should know the machine
number. My problem is if the user doesn't know the number. I have a button
which changes the row source of the combo box to order by description, but
when the user starts to type the description the relevant record does not
come up as machine number is still visible. Is it possible, when I change
the row source to also make the first column width 0 through code?

I also want to enable the user to search the combo box leaving the drop down
filled with the search results.
I also have an unbound textbox for the user to enter their search terms, but
I am not sure of the next step

Thanks in advance


3. Combo Box - Hide Combo Box w/Check Box

4. Cascading Combo Box - filling a text box instead of a Combo box

5. add codes to combo box/cascading combo

6. inserting text from a combo box to a text box

7. Insert record from list box to combo/text box

8. convert text box to combo box using code

9. Very slow code when loading a combo box with number 1 to 30000 (see code)

10. Filter Combo Box B based on Combo Box A Selection

11. combo box based on a combo box

12. Filter information from a combo box to a combo box

13. to combo box or not to combo box...

14. Combo box choices based on another combo box

15. combo box based on a second combo box not working