English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

ok...in vb.net i have a button called btnAdd..with the text Add, when clicked the text changes to Save..i want the button to be able to click again,saves data,and change back the text...wat is the code to use when click it again...

2006-08-03 04:13:43 · 1 answers · asked by braich_gal 3 in Computers & Internet Programming & Design

what i mean is how do u change the text back to Add

2006-08-03 04:27:28 · update #1

sorry...i mean when i click on the button when it says save, how do u do that code?

2006-08-03 04:29:01 · update #2

1 answers

Try something along the lines in the click event of:

if btnAdd.text = "Save" Then
DoStuff
btnAdd.text = "Add"
Else
DoStuff
btnAdd.text = "Save"
End If

2006-08-03 04:18:47 · answer #1 · answered by Just David 5 · 1 1

fedest.com, questions and answers