[VBA-E] pb positionnement en avant-plan d'une textbox
Bonjour,
J'utilise une flexgrid dont je souhaite changer les valeurs des cellules. pour cela je souhaite afficher une textbox sur la cellule que je veux modifier.
Malgré l'utilisation de Zorder, ma textbox reste en arriere-plan ( donc non visibles sous la flexgrid).
Quelqu'un a t'il une idée?
Pour info voici mon code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Private Sub MSFlexGrid1_DblClick()
With TextBox1
.Left = (MSFlexGrid1.CellLeft / 20 + MSFlexGrid1.Left)
.Height = (MSFlexGrid1.CellHeight / 20 + 5)
.Width = (MSFlexGrid1.CellWidth / 20)
.Top = (MSFlexGrid1.CellTop / 20 + MSFlexGrid1.Top - 20)
.Text = MSFlexGrid1.Text
End With
MSFlexGrid1.Text = TextBox1.Text
TextBox1.Visible = True
TextBox1.ZOrder 0
End Sub |