0
A
回答
0
Public Class ZTextBox
Inherits System.Windows.Forms.TextBox
Public Event ZTextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
MyBase.OnPaint(e)
'Add your custom paint code here
End Sub
Private Sub ZTextBox_TextChanged1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.TextChanged
If Me.Text.Length > 3 Then
RaiseEvent ZTextChanged(sender, e)
End If
End Sub End Class
,你可以用你的表格下面
Private Sub ZTextBox1_ZTextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ZTextBox1.ZTextChanged
MsgBox(1)
End Sub
0
我想你会需要一个自定义控件,它继承了自定义事件的文本框控件,在内部事件中执行检查,并在看到合适的时候触发自定义事件。
相关问题
- 1. ASP .Net Textbox Textchanged事件
- 2. TextBox - TextChanged事件Windows C#
- 3. TextChanged上的Textbox事件给出错误!
- 4. Asp.Net Repeater如何找到TextBox“TextChanged”事件的另一个控件
- 5. 当TextBox TextChanged事件被触发?
- 6. textbox textchanged事件总是触发
- 7. C# - TextBox TextChanged事件没有触发
- 8. ASP.NET文本框TextChanged事件没有在自定义EditorPart中触发
- 9. asp.net textbox - 客户端textChanged事件不会触发
- 10. TextBox TextChanged事件和CheckBoc CheckedChanged事件不在GridView中发射
- 11. 取消TextChanged事件(ASP.NET)
- 12. TextBox不会触发IE 8上的TextChanged事件,AutoPostback为真
- 13. ASP.Net textbox onblur事件
- 14. ASP.NET TextBox LostFocus事件
- 15. 在TextChanged TextBox上显示等待光标
- 16. 在TextBox上自定义边框
- 17. Asp.net上的c#Textchanged事件发射两次
- 18. textbox - Asp.net上的KeyPress事件[no javascript]
- 19. MS Access中的TextChanged事件
- 20. 当存在MainWindow加载事件时TextBox TextChanged事件触发问题
- 21. 自定义usercontrol上的MouseHover事件#
- 22. 多个TextChanged和KeyPress事件
- 23. asp.net +事件名称UpdatePanel textbox onblur事件
- 24. ASP.NET在父页面上获取UserControl自定义事件VB
- 25. TextBox TextChanged GridView中没有触发的事件
- 26. 当Visible = False时TextBox TextChanged事件不会触发?
- 27. ASP.NET和自定义事件的问题
- 28. 如何调用TextBox WebForm控件的TextChanged
- 29. 在mvc文本框中的textchanged事件
- 30. 的TextBox框TextChanged财产