Public Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'some code
Dim MyButton As New Button()
With MyButton
.Location = New Point(12, 12)
.Size = New Size(75, 30)
.TabIndex = 0
.Text = TextBox1.Text...
So, I am executing a function which returns some string value in textfields. But, when I am trying to use the textfield value somewhere else; it gets added with some extra spaces and I am not able to achieve the desired task. I have tried Trim() and it didnt help and I have also tried...
I am using the below code to open a new form:
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim NewMDIChild As New mdgeneral
'Set the Parent Form of the Child window.
NewMDIChild.MdiParent = Me
'Display the new form...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.