Here is the property code for the textbox and the form
'TextBox1
' Me.TextBox1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _ Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) Me.TextBox1.Location = New System.Drawing.Point(48, 43) Me.TextBox1.Name = "TextBox1" Me.TextBox1.Size = New System.Drawing.Size(65, 20) Me.TextBox1.TabIndex = 2 ' 'fclsEventsDemo ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.ClientSize = New System.Drawing.Size(302, 259) Me.Controls.Add(Me.TextBox1) Me.Controls.Add(Me.lblMessage) Me.Controls.Add(Me.txtEvents) Me.Name = "fclsEventsDemo" Me.Text = "Form1" Me.ResumeLayout(False) Me.PerformLayout()
Here is the event code
Private Sub TextBox1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Resize TextBox1.Text = TextBox1.Width End Sub
I have tried setting the Border to something beside 'Fixed'. All resize references I have found refer to Forms or tables. Is there a property that allows users to resize a textbox?
(

New Topic/Question
Reply




MultiQuote




|