Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi. i have a button which i set it into

eg.( button.visibility=visibility=visibility.Hidden;) initially. How do i make it turn into a image after clicking the button or how can i make the button background to white and visible after button click .

Thanks
Posted

You can show an image in the same location via a picture box, by toggling between the two. You can set the button background to anything you like, it's a property. No-one can click on a button that is invisible.
 
Share this answer
 
Comments
LeeYing18 8-Aug-12 3:52am    
Thanks for replying :)
Hi,
You can do this by using Toggle Buttons[^]. You can change the states and style of the button using this.
Try this:
HOW TO Use the ToggleButton Control [^]
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ToggleButton/ToggleButton.aspx[^]
Toggle Controls[^]


--Amit
 
Share this answer
 
Comments
LeeYing18 8-Aug-12 3:52am    
Thanks for replying :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900