The text of this article is not in this database — only its details are. Read it on the old site: TextBox in VB.NET
2 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: TextBox in VB.NET
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
ko mreditedPosted Sep 13, 2011, 10:51 AMEdited Sep 13, 2011, 10:52 AM
Hi! How interesting article is for me, a very beginner in vb.net! I wish to know how I can retrieve the values that I input in those dynamically created textboxes. The code please!
Dragan MilutinovichPosted Aug 5, 2010, 7:13 AM
hi mahesh, could you please tell me how can I Implement a find button that searches for a word in textbox and does it for the whole text rather than just the first instance that does in mine ? here is what I have Private Sub findButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles findButton.Click Dim startPos As Integer startPos = MainForm.TextBox.Text.IndexOf(TextBox1.Text) ', type) If startPos = 2 Then MainForm.TextBox.Focus() End If If startPos < 0 Then MessageBox.Show("The String '" + TextBox1.Text + _ "' could not be found", "Text Not Found", MessageBoxButtons.OK, MessageBoxIcon.Asterisk) Return End If MainForm.TextBox.Select(startPos, TextBox1.Text.Length) MainForm.TextBox.ScrollToCaret() End Sub