Click here to Skip to main content
15,790,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,
I want to remove or delete a label using delete key or button key press event form a form durying run time.
Posted
Comments
Thanks7872 6-Aug-13 5:20am    
Why?

1 solution

If you want to remove object and its instance just dispose it.

on button keypress event

VB
label1.Dispose()
 
Share this answer
 

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