当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 问哪里有vpn for win2003的驱动下载?给个连接也行 ......
    摘要: 比如有一个表,主要的字段要用到parentschildquantity 举个例子表的内容为: parent child quantity x a 1 x b 1 a a1 2 a a2 2 a2 b1 2 a2 b2 1 如何能够遍历这个表,并能够提供的parent号,和parent的数量来生成有级别的新表 生成结果如下: material quantity x 1 .a 1 ..a1......


TextBoxleave两次触发的问题

作了一个form,在上面放了两个txt和两个combobox,  
          Private   Sub   ComboBox1_Leave(ByVal   sender   As   Object,   ByVal   e   As   System.EventArgs)   Handles   ComboBox1.Leave  
                  Debug.WriteLine("ComboBox1_Leave")  
                  Me.ComboBox1.Focus()  
          End   Sub  
          Private   Sub   TextBox1_Leave(ByVal   sender   As   Object,   ByVal   e   As   System.EventArgs)   Handles   TextBox1.Leave  
                  Debug.WriteLine("TextBox1_Leave")  
                  Me.TextBox1.Focus()  
          End   Sub  
  追加了如上代码,  
  把焦点设定在TextBox1上,用鼠标点击TextBox2,TextBox1_Leave触发了两次。  
  TextBox1_Leave  
  TextBox1_Leave  
  出现了两行Debug信息  
  用鼠标点击combobox上,则触发一次leave  
  如果把焦点设定在ComboBox1上,用鼠标点击TextBox2,ComboBox1_Leave触发了两次。  
  用鼠标点击ComboBox2上,则触发一次leave  
  请问这是什么问题?和环境有关系吗?  
  我用的是.net2003,.Net   Framework   1.1   SP1

NO.1   作者: sx_lxh

改为:  
  Private   Sub   ComboBox1_Leave(ByVal   sender   As   Object,   ByVal   e   As   System.EventArgs)   Handles   ComboBox1.Leave  
                  MsgBox("ComboBox1_Leave")  
                  Me.ComboBox1.Focus()  
          End   Sub  
          Private   Sub   TextBox1_Leave(ByVal   sender   As   Object,   ByVal   e   As   System.EventArgs)   Handles   TextBox1.Leave  
                  MsgBox("TextBox1_Leave")  
                  Me.TextBox1.Focus()  
          End   Sub  
  只触发一次leave

NO.2   作者: pinkybs

guan   zhu

NO.3   作者: farrio

使用msgbox应该出发两次,因为msgbox显示之后,你的焦点就会自动转移到msgbox上面了。


 ·windows自身如何配置网络库    »显示摘要«
    摘要: 用vc写了数据库的录入程序,但是发现在机子上运行后,必须要先通过网上邻居访问一下数据库所在的机子,才能进去,通过sql自带的cliconfg.exe来配置后,就不用网上邻居访问可直接运行了,请问在windows里有没有自带的配置的工具或方法,拜谢了! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE