Private Sub MSHFlexGrid1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) If Button = 2 Then MSHFlexGrid1.Row = MSHFlexGrid1.MouseRow MSHFlexGrid1.Col = MSHFlexGrid1.MouseCol With Frame1 .Top = MSHFlexGrid1.Top + MSHFlexGrid1.CellTop .Left = MSHFlexGrid1.Left + MSHFlexGrid1.CellLeft .Width = MSHFlexGrid1.CellWidth .Height = MSHFlexGrid1.CellHeight .Visible = True .ZOrder 0 End With End If End Sub
If Button = 2 Then
MSHFlexGrid1.Row = MSHFlexGrid1.MouseRow
MSHFlexGrid1.Col = MSHFlexGrid1.MouseCol
With Frame1
.Top = MSHFlexGrid1.Top + MSHFlexGrid1.CellTop
.Left = MSHFlexGrid1.Left + MSHFlexGrid1.CellLeft
.Width = MSHFlexGrid1.CellWidth
.Height = MSHFlexGrid1.CellHeight
.Visible = True
.ZOrder 0
End With
End If
End Sub