tags:

views:

29

answers:

1
Dim SecondName As String = SecondNameTxtBox.text()

Is the above statement a correct one?

Here I want to assign the value of the text box into tat "SecondName". If it's wrong, please tell me the correct way to write this statement.

+4  A: 

No, it is not correct. SecondNameTxtBox.Text is a property, not a method, so leave off the parentheses.

Joel Coehoorn
+1 One of the annoyances of VB.NET that it does not enforce coding style.
Bobby
Dim SecondName As String = SecondNameTxtBox.textso u mean tat this s correct
dinedine007