I'm writing a VB6 application that involves an in-cell editing of a MSHFlexgrid control using comboboxes and text boxes.
In order to set the position of the combo boxes, I use the following code:
cmbGlasses(I).Move fgGlassSub.Left + fgGlassSub.CellLeft, _
fgGlassSub.Top + fgGlassSub.CellTop, _
fgGlassSub.CellWidth - 8
It should be working, but instead I get a strange behaviour:
The grid is hidden and a I click on a button to see it. When it opens for the first time, the moment I click on a row, it opens the combo box exactly at the next row! If there is only one row, it will show the combo box on the an "empty" background of the MSHFlexgrid.
But the most strange this is that the moment I have enough rows in the grid to show a scroll it begins to work fine, even if I delete rows or reloads the grid with not enough rows to show a scroll.
The grid is inside a frame on the form.
Any ideas for this strange behaviour?