You cannot do that in VFP because VFP controls aren't real windows controls. They are painted by VFP. Because of that an ActiveX control will be always on top of any VFP control.
>Hi there!!
>
>i am trying to use a combobox control in msflexgrid control to accept data from user as explained in MSDN (Q201197) using Visual Basic.
>
>But in Visual Foxpro same trick is not working...Combobox doesn't become visible in visual foxpro.
>
>Can any body guide me, how can i achieve such functionality ?
>
>codes:
>
>*** ActiveX Control Event ***
>WITH thisform
> .Combo1.Width = .MSFlexGrid1.CellWidth
> .Combo1.Left = .MSFlexGrid1.CellLeft + .MSFlexGrid1.Left
> .Combo1.Top = .MSFlexGrid1.CellTop + .MSFlexGrid1.Top
> .Combo1.value = .MSFlexGrid1.Text
> .Combo1.Visible = .t.
>ENDWITH
>
>
>Regards
>Sunny
--sb--