Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4612294
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:23:00+00:00 2026-05-22T01:23:00+00:00

In VisualStudio 2008 and 2010, when I type, e.g. this.Activated += and press Tab,

  • 0

In VisualStudio 2008 and 2010, when I type, e.g.

this.Activated += 

and press Tab, VisualStudio automatically complements the line:

this.Activated += new EventHandler(MainWindow_Activated);

But the simpler, more laconic versions works too:

this.Activated += MainWindow_Activated;

Are these lines equivalent? new EventHandler is probably there for a reason…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:23:01+00:00Added an answer on May 22, 2026 at 1:23 am

    Newer versions of C# infer the long version when you use the short version. This means even though you write less code, it still compiles to the longer version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do you get this window in VisualStudio 2008: alt text http://sarathc.files.wordpress.com/2008/09/image-thumb6.png I am
I'm using VisualStudio 2008 and 2010, both with ReSharper, and when I try to
As far as I remember, Visual Studio (both 2008 and 2010) used to have
With Visual Studio 2010 right around the corner, what does Visual Studio 2008 Professional
I have installed Visual Studio 2010 (final) and then Visual Studio 2008. Now I
I am converting a large solution from Visual Studio 2008 to Visual Studio 2010.
I just moved from Visual Studio 2008 to Visual Studio 2010 (final) and noticed one major
I have installed Visual Studio 2010 RC. I want to install Visual C# 2008
I have created a web application using Visualstudio 2008 using C# on my computer.
is there something like a Quickfix in Eclipse IDE available in VisualStudio 2008? Thanks,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.