Wednesday, 26 September 2012

Transfer value between Controls.

=> transfer the value of textbox to label and vice versa...


take 1 label, textbox and a button...





double click on button ,on the code window write:
Label1.Text=TextBox1.Text;

debug the program and click on button the value of textbox transfer into the label

for vice versa write"TextBox1.Text=Label1.Text;" in the button click event.

=> transfer the value of Radiobutton to Label...


take radiobutton , label and a button 


in button click event write the code ..



=> transfer the value of ListBox to Label...


take listbox , label and a button..
add the items into the listbox.



in button click event write the code ..


=> transfer the value of DropDownList to Label...


take dropdownlist , label and a button..
add the items into the dropdownlist.


in button click event write the code ..





=> transfer the value of DropDownList to ListBox...

take dropdownlist , listbox and a button..
add the items into the dropdownlist.

in button click event write the code ..

to remove the items take anthoer button 

write the code in button2 click event...


No comments :

Post a Comment