Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 2nd, 2008, 06:06 PM
Registered User
Join Date: Feb 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to delete a piece of code

I created a piece of code, a event, and tried to delete it but got a error after I deleted it. How do I delete a piece of code? The following is the error I get. Thanks for the help guys.

Error 1 'ManualMenus.Form1' does not contain a definition for 'ToolStripMenuItemBold_CheckedChanged'

Old August 3rd, 2008, 01:26 AM
Friend of Wrox
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post

Have you tried searching for "ToolStripMenuItemBold_CheckedChanged" and delete the code that is trying to call the missing method?

Old August 3rd, 2008, 11:32 AM
samjudson's Avatar
Friend of Wrox
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts

Double clicking on the error message will take you to the line of code, which you can then delete.

Either that or select the ToolStripMenuItemBold object, view its Event Properties in the proerties window and delete the text next to the CheckedChanged event.

/- Sam Judson : Wrox Technical Editor -/

Similar Threads
Thread Thread Starter Forum Replies Last Post
understand a piece of code in assembler rbulus BOOK: Professional Assembly Language 1 January 10th, 2010 07:45 AM
Question about a piece of code chobo2 C# 2008 aka C# 3.0 8 November 30th, 2008 11:53 AM
Need help with a small piece of code (New to VB) kwik10z Excel VBA 2 October 12th, 2007 06:46 AM
What does this piece of code do? mito_lal Oracle 1 July 11th, 2006 06:44 AM
putting piece of code into a string .... elladi Classic ASP Basics 0 December 23rd, 2004 12:27 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.