There is a method to get/set the columns Width and height, so estableshing the ofset of the selected cell should be straight foward...
Something like...
Sub Table_SelectionChanged
Textbox1.Left=TB.ColNumber(TB.SelectedCol)*TB.ColW idth(TB.SelectedCol)+1
'Textbox left value = selected Column index * The column Width + 1 to place the TextBox INSIDE the CELL
'The same Aplies to the TOP propertie...
End Sub
__________________
Paulo Gomes
Porto, Portugal
PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
DLL Version Listing
|