| | |
How can I do??
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2002
Posts: 461
Reputation:
Solved Threads: 56
Try this:
VB.NET Syntax (Toggle Plain Text)
Public Class Form1 Private count As Integer = 5 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim tb As New TextBox tb.Name = "Textbox" & CStr(count) tb.Visible = True tb.Location = New Point(10, 10) tb.Text = tb.Name ' add this if you want a click event AddHandler tb.Click, AddressOf TextboxClick Me.Controls.Add(tb) count += 1 End Sub ' add this if you want a click event Private Sub TextboxClick(ByVal sender As System.Object, ByVal e As System.EventArgs) MessageBox.Show("Textbox clicked") End Sub End Class
Wayne
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: Month calendar
- Next Thread: windows form border style
| Thread Tools | Search this Thread |
"crystal .net .net2005 2008 access add advanced application array assignment basic beginner box button buttons center click code combo convert cpu cuesent data database datagrid datagridview datetimepicker designer dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel exists firewall forms html image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net number opacity open pan picturebox picturebox2 port print printpreview record regex reports" reuse right-to-left save savedialog search serial settings socket sorting sqldatbase sqlserver storedprocedure string temp textbox timer txttoxmlconverter useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web wpf wrapingcode xml





