index > Visual C# General > Delete controle does not remove code

Delete controle does not remove code

Is there a way to delete a control from a form and get rid of the code associated with it?  During testing, I've wound up with several text boxes/labels that i'd like to get rid of.  The only thing Iv'e found so far is to search for each name and manually delete.  Why does not deleting the item from the IDE get rid of the code?

Thanks
GreyW63
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=143096&SiteID=1


Mark the best replies as answers!
Daniel Rieck

Hi

You need to remove the event associated with the control. If you click on the control and open the properties window, you will see a lightning bolt icon, click on it. Scroll down until you find the event and manually delete the event. this should remove the code.




PA46923
ChristopherSeewald
reply 3

You can use google to search for other answers

 

More Articles

• "disable" browser back
• Using an OLE object without having the TLB
• multiview problem
• My event is null ??
• Making query in SQL Server - What is the best way?
• C#.NET <> VB.NET Code Translator
• rounding up
• state of layout property
• Need some huge help
• How to creat array of bitmap?
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• menu name???
• DbCommand Property
• How to flip or translate crystal report
• How to add progress bar to status bar
• edit textbox msword form c#
• c# remoting program oledb error
• With Statement With Word Automation
• pasteHtml function in WebBrowser control
• How can I pass Login Information with Ht
• HELP ME PLEASE!!!!!
• AT Command set for Samsung X600
• byte[] writing and byte[] reading
• Where is add Main Menu?
• Referencing an executable component from
• Programmatically select a Listview item

Hot Articles

• SaveAll
• Not possible to set a background image i
• Windows Start Button
• Getting the base class of an object inst
• Speech Reco. Problem
• Adding an MDI form to a Tab Page
• Switch Statement/TextBox
• Print to a File in the server
• Can I use MS's images in articles?
• GIS/Mapping/Geocoding OCX for .NET?
• how will i know that the checkbox is cli
• mySQL from C#
• DataGridView EditingControlShowing Cells
• which control captures drawing?
• Datareader and class'ing

Recommend Articles

• Set WebBrowser Control to download no im
• How to know the byte size of a string?
• How to Exract SQL minute data to houly d
• alt text in image
• passing runtime queries to DB...
• Folder compression
• making .NET 2.0 tracefiles readable/pars
• How to get the display information from
• Best way to display my data
• SQL DB or XML DB?
• What kind of ASP.Net application will be
• More on XML Documentation Comments
• WMP custom skin
• ToString() -- 'No overload for method To
• MSNdis_80211_BSSILIST - Problem Extracti