xddddddddddddd xddddddddddddd - 2 months ago 6
Vb.net Question

Changing values of 2 textboxes with each other (VS.NET)

I want to know how to change the values of 2 textboxes with each other when I click on a button. vs.net

Answer

This is very easy :)

'Values to Store the text
Dim textbox1 as String
Dim textbox2 as String
textbox1 = mytextbox1.text
textbox2 = mytextbox2.text

mytextbox1.text = textbox2
mytextbox2.text = textbox1

this would be possible too

'Values to Store the text
Dim textbox1 as String
textbox1 = mytextbox1.text

mytextbox1.text = mytextbox2.text
mytextbox2.text = textbox1

Cheers :)