How can I do??

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 27
Reputation: gouki2005 is an unknown quantity at this point 
Solved Threads: 0
gouki2005 gouki2005 is offline Offline
Light Poster

How can I do??

 
0
  #1
Mar 8th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: How can I do??

 
0
  #2
Mar 8th, 2009
Try this:
  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
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC