The question is not clear, but if you're asking how to get control reference...
You already found the control via GetAttribute. Just cast it into proper type instead of generic html element.
If TypeOf webpageelement is TextBox
dim txt as TextBox = DirectCast(webpagelement, TextBox)
txt.Text = "Your text"
End If
If this solves your problem, please take the time and accept this solution so you help others with similar problem(s).