- 1). Open the "Toolbox" ActiveX and click on "Components."
- 2). Click on "Microsoft FlexGrid Control 6.0" in the menu.
- 3). Select the "VB6FlexGrid.ocx" file on your PC and select "OK."
- 4). Open ActiveX and select the Flexgrid file you want to add the combo box to from the "File" menu.
- 5). Insert this code into any column's code you want the combo box in: "VB6Flexgrid1.CellType NUMBER, True ' combo box at column #NUMBER VB6Flexgrid1.ComboClear NUMBER ' clear this combo VB6Flexgrid1.ComboAddItem NUMBER, „Visual Studio" ' add item to this combo.'"
- 6). Replace every instance of "NUMBER" with the column number if it says "Celltype," or the number of grid spaces you want in the combo box if it says "ComboClear" and "ComboAddItem."
- 7). Select "Save."
SHARE