Here is the code I use to initialize an edittext and assign the tag
<code>
Dim EditText1 as EditText
EditText1.Tag = m.get("Name") 'm is a map which I have put information in advance
EditText1.Text = m.get("Phone Number")
DesignPanel.Panel.AddView(EditText1,30%x,10,70%x,80)
</code>
When the EditText_TextChanged raised, a messagebox will pop up so that I can check if the tag is correctly assigned. But when it was raised by the code above (When the phone number is put automatically), the tag appears to be okay. However, the tag becomes null when it is raised by myself changing the text manually.
<code>
Sub EditText1_TextChanged (Old As String, New As String)
Dim ET1 As EditText = Sender
Dim key As String = ET1.Tag
Msgbox("Tag = " & Key,"")
</code>
Why is that???? ><
<code>
Dim EditText1 as EditText
EditText1.Tag = m.get("Name") 'm is a map which I have put information in advance
EditText1.Text = m.get("Phone Number")
DesignPanel.Panel.AddView(EditText1,30%x,10,70%x,80)
</code>
When the EditText_TextChanged raised, a messagebox will pop up so that I can check if the tag is correctly assigned. But when it was raised by the code above (When the phone number is put automatically), the tag appears to be okay. However, the tag becomes null when it is raised by myself changing the text manually.
<code>
Sub EditText1_TextChanged (Old As String, New As String)
Dim ET1 As EditText = Sender
Dim key As String = ET1.Tag
Msgbox("Tag = " & Key,"")
</code>
Why is that???? ><