以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  Textbox  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=195611)

--  作者:fangshen
--  发布时间:2025/2/21 11:07:00
--  Textbox
各位大侠:我现在想实现

在窗口A中,有Textbox1和Textbox2,button1
Textbox2=0时,点击button1后,把Textbox1的值复制到Textbox2,
   Textbox2不是0时,按钮无效

   谢谢

--  作者:y2287958
--  发布时间:2025/2/21 11:11:00
--  
If e.Form.Controls("TextBox2").Value = "0" Then
    e.Form.Controls("TextBox2").Value = e.Form.Controls("TextBox1").Value
End If