会员登录 - 用户注册 - 网站地图 Office中国(office-cn.net),专业Office论坛
当前位置:主页 > 技巧 > Access技巧 > ActiveX控件图表 > 正文

Access在DataGrid中顯示DataCombo

时间:2004-01-07 00:00 来源:Access911 作者:cg1 阅读:


在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

 

(责任编辑:admin)

顶一下
(0)
0%
踩一下
(0)
0%
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价: