C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

How to dispose/disable dynamically created button


Posted Date: 04 Nov 2009      Posted By: sajith      Member Level: Bronze     Points: 1   Responses: 2



Hi experts,
I have a c# desktop application.I created a button dynamically and attached an event to that button. But now i dont want that button.
How to dispose/disable dynamically created button???





Responses

Author: K Hari Prasad    04 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

for disabling the button.

btn.isenabled = false.



Author: Anil Kumar Pandey    04 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

using the newly created button Id, you can do any thing..

like btnOK.Enabled=false;

Thanks & Regards
Anil Kumar Pandey



Post Reply
You must Sign In to post a response.
Next : To display information in crystal report for tables having relationship
Previous : C# application.
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use