Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
下载信息 [文件大小: 下载次数: ] | |
![]() |
在页面1 talbe的 CurrentChanged 事件中 设置为
Dim tab As WinForm.TabControl = Forms("窗口1").Controls("TabControl1")
tab.SelectedIndex=1
页面到2以后,再也回不到页面1 了。。见图见附件
我测试后发现两个问题:
1、在楼主提供的测试文件中,代码并不是写在CurrentChanged事件中,而是在PositionChanged事件中。
但无论把这段代码写在哪一个事件中,都会出现楼主所说的状况。
2、当我试图把PositionChanged事件中的代码剪切到CurrentChanged事件中时,新的问题出现了:
PositionChanged事件中的代码被剪走了,而在CurrentChanged事件中却无法粘贴过来!
无论是用鼠标右键菜单中的“粘贴”还是Ctrl-V,都不管用。
我又打开记事本试了一下,也无法粘贴过去。
这说明,在执行了剪切(无论是通过鼠标还是键盘)操作之后,剪贴板中的内容是空的!
但是,同样的操作过程,复制操作却没有任何问题。
说是新问题,其实是个老问题。而且以前不止一次地提过!请看:
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=2617&skin=0
http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=5525&authorid=0&page=0&star=1
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=6137&skin=0
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=7125&skin=0