设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

在DataGrid中顯示DataCombo

1970-1-1 08:00| 发布者: cg1| 查看: 2648| 评论: 0

专题地址: http://access911.net/index.asp?board=4&recordid=74FAB51E16DC

在DataGrid中顯示DataCombo
DataGrid1_MouseDown
Dim col As MSDataGridLib.Column
Set col = DataGrid1.Columns(DataGrid1.col)
If col.Caption = "MS" And DataGrid1.CurrentCellVisible Then
    DataCombo1.Left = DataGrid1.Left + col.Left + 2 * Screen.TwipsPerPixelX
    DataCombo1.Top = DataGrid1.Top + DataGrid1.RowTop(DataGrid1.Row) + 2 * Screen.TwipsPerPixelX
    DataCombo1.Width = col.Width - 2 * Screen.TwipsPerPixelX
    DataCombo1.Text = col.Text
    DataCombo1.Visible = True
    DataCombo1.SetFocus
    DataCombo1.ZOrder
Else
DataCombo1.Visible = False
End If

最新评论

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-5-2 07:36 , Processed in 0.084196 second(s), 16 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

返回顶部