Results 1 to 17 of 17

Thread: [resolved][C# 2.0] Annoying Event Handler Auto-Complete

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Resolved [resolved][C# 2.0] Annoying Event Handler Auto-Complete

    When I add an event handler in Visual Studio 2005 and accept the auto-complete, the method stub looks like this:
    Code:
    this.MouseClick += new MouseEventHandler(Form1_MouseClick);
    
    void Form1_MouseClick(object sender, MouseEventArgs e)
    {
    	throw new Exception("The method or operation is not implemented.");
    }
    Is there a way to stop VS from adding the throw to the function body?
    VS 2003 didn't do this. The method stub was blank.
    Last edited by wey97; Sep 26th, 2006 at 07:31 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width