(菜鸟求助)两个小问题?
Posted on 八月 16rd, 2007 由 admin
1:如何判断treeview中任一个node是否有父节点?
2:如何在某个text中输入完毕后,按enter后相当于按了某个command(并不影响其他text输入完毕后按enter没有任何操作)
推荐阅读
网友:cuizm
private sub command1_click()
if treeview1.selecteditem.parent is nothing then
msgbox "没有父结点!", vbinformation
else
msgbox "有父结点!", vbinformation
end if
end sub
网友:cuizm
private sub text1_keypress(keyascii as integer)
if keyascii = 13 then
command1.value = true 相当于按command1按钮
end if
end sub


讨论区