G
Guest
When my program is launched, there is a textbox on the form.
When the user enters a character into the textbox (TextChanged), a second,
declared textbox is added using this block of code.
Dim textbox2 As New TextBox
Controls.Add(textbox2)
When the second textbox is filled with character as well, a third textbox is
added using smilar method as adding the second one. However, when I add the
event handler using
Private Sub textbox3_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles textbox3.TextChanged
, VB say that 'Handle clause requires a WithEvent varible'. I checked the
Online Help about WithEvent
(http://msdn.microsoft.com/library/d...n-us/vbcn7/html/vaconWritingEventHandlers.asp) and I have no clue what it is talking about.
Can somebody help me with this problem? Thanks.
When the user enters a character into the textbox (TextChanged), a second,
declared textbox is added using this block of code.
Dim textbox2 As New TextBox
Controls.Add(textbox2)
When the second textbox is filled with character as well, a third textbox is
added using smilar method as adding the second one. However, when I add the
event handler using
Private Sub textbox3_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles textbox3.TextChanged
, VB say that 'Handle clause requires a WithEvent varible'. I checked the
Online Help about WithEvent
(http://msdn.microsoft.com/library/d...n-us/vbcn7/html/vaconWritingEventHandlers.asp) and I have no clue what it is talking about.
Can somebody help me with this problem? Thanks.