How to converted a value of textbox into a String??
Here the full code:
Public Property Name_textbox() As String
Get
Return TextBox1
End Get
Set(ByVal value As String)
End Set
End Property
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
My.Resources.Name = Name_textbox()
End Sub
But I get this error :
Value of type 'System.Windows.Forms.TextBox' cannot be converted to 'String'.
Question
Jerry Grey Member
Hey,
How to converted a value of textbox into a String??
Here the full code:
But I get this error :
Thanks :D
Link to comment
Share on other sites
4 answers to this question
Recommended Posts