动态Control为什么不能最上层显示?
ysb 2000-09-19 06:17:00 我现在在做一个排程的程序。
当我动态的产生一个CommandButton的时候,我想把CommandButton移动到MSHFlexGrid1上面。但是不知道为什么CommandButton不能在上层显示,所以总是看不到。是不是哪个地方有问题?
代码如下:
cmdCount = cmdCount + 1
Load CmdGX(cmdCount)
With CmdGX(cmdCount)
.Visible = True
.BackColor = vbRed
.Move MSHFlexGrid1.CellLeft, MSHFlexGrid1.CellTop
End With