调用SetFocus方法后Spread仍然无法获得焦点
问题出在Spread不失去焦点的情况下无法获得焦点
所以在调用按钮单击事件时(Button1_Click)要先使按钮获得焦点(Button1.SetFocus)
vbSpread1.SetFocus
vbSpread1.Col = 1
vbSpread1.Row = 1
vbSpread1.Col = 1
vbSpread1.Row = 1
vbSpread1.ACTION = ActionActiveCell
调用SetFocus方法后Spread仍然无法获得焦点
问题出在Spread不失去焦点的情况下无法获得焦点
所以在调用按钮单击事件时(Button1_Click)要先使按钮获得焦点(Button1.SetFocus)
vbSpread1.ACTION = ActionActiveCell
![]() | 本作品采用 知识共享署名-非商业性使用 2.5 中国大陆许可协议进行许可。 |