943,712 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 361
  • VB.NET RSS
Mar 8th, 2009
0

How can I do??

Expand Post »
dim i as integer = 1

textbox1.text

textboxi.text

so I want to use i like a integer how can I concatenate that?? it is posible?
Reputation Points: 10
Solved Threads: 0
Light Poster
gouki2005 is offline Offline
36 posts
since Jun 2008
Mar 8th, 2009
0

Re: How can I do??

Try this:
VB.NET Syntax (Toggle Plain Text)
  1. Public Class Form1
  2. Private count As Integer = 5
  3.  
  4. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  5. Dim tb As New TextBox
  6. tb.Name = "Textbox" & CStr(count)
  7. tb.Visible = True
  8. tb.Location = New Point(10, 10)
  9. tb.Text = tb.Name
  10. ' add this if you want a click event
  11. AddHandler tb.Click, AddressOf TextboxClick
  12. Me.Controls.Add(tb)
  13. count += 1
  14. End Sub
  15.  
  16. ' add this if you want a click event
  17. Private Sub TextboxClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
  18. MessageBox.Show("Textbox clicked")
  19. End Sub
  20. End Class
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Call function when data is already available AND when data should be retrieved
Next Thread in VB.NET Forum Timeline: windows form border style





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC