tfod2000 发表于 2004-11-19 18:36:00

[VBA]关于Grid

我的vb中加载了grid控件后,却调不出类似


<FONT size=2>Grid1.ColWidth(0) = 540<BR>Grid1.RowH eight(0) = 216 '单元格的宽和高<BR><BR>inputcolnum = 13<BR>inputrownum = 15 '表中显示的列、行数<BR><BR>Grid1.Cols = 20<BR>Grid1.Rows = 20 '表中总的列、行数<BR><BR>HScroll1.Height = 300<BR>VScroll1.Width = 300 '水平和垂直滚动条的高、宽度<BR><BR>Grid1.Height = (inputrownum + 1) '<BR>(Grid1.RowHeight(0) + Grid1.GridLineWidth * 12) <BR>+ 12 + HScroll1.Height<BR>'800×600象素时为12;640×480为15<BR>Grid1.Width = (inputcolnum + 1) * <BR>(Grid1.ColWidth(0) + Grid1.GridLineWidth * 12) <BR>+ 12 + VScroll1.Width<BR>'表的高、宽度</FONT><BR>请各位指点一下。
页: [1]
查看完整版本: [VBA]关于Grid