Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
在文本框的TextChanged设置代码,如果有内容,设置button的Enable属性为True,反之则设置为false
另帖子标题不要简单的“按钮”两个字,应该简单描述问题或问题类型
可以了
Dim lbl As WinForm.TextBox
lbl = e.Form.Controls("TextBox1")
Dim lbl1 As WinForm.Button
lbl1 = e.Form.Controls("Button2")
If lbl.Value Is Nothing Then
lbl1.Enabled = True
Else
lbl1.Enabled = False
end if
为什么我清空文本框的数据后,按钮标题不会立即变成灰色?
设置在TextBox1的TextChanged事件中:
e.Form.Controls("Button2").Enabled = (e.Sender.Text > "")
MessageBox.Show(CurrentTable.Name)就是焦点所在的表。