[
Advertise | Submit Code | About us | Contact us | Link us
]
Go!
Membership Services
Login
Register

Home
C# General

General

C# Language

Design & Architecture

Algorithms

Database

Security

Active Directory

COM Interop

Remoting
C# Windows Forms

General

Combo and List boxes

Miscellaneous Controls

Button Controls

Edit Controls
Cutting Edge

ASP.NET 2.0

Visual Studio 2005

Windows Longhorn

SQL Server 2005
C# Multimedia and GDI+

General

DirectX

GDI+

Audio
Internet & Web

General

Images and multimedia

Database

Utilities

Security

ASP.NET Controls

Design and Architecture

Webservices
.NET

General

Design & Architecture

Algorithms

Database

Security

Active Directory

COM Interop

Remoting

ADO.NET

XML.NET

Tools

Enterprise

IDE
Visual Basic .NET

VB.NET General

VB.NET Controls
General Reading

.NET Books Review

Product Showcase

Book Chapters

Business Design & Strategy
Community

Discuss

Job Board

Discussion

CodeXchange
DeveloperLand

Advertise

Submit Code

About us

Contact us

Link us
Miscellaneous

Favorite Links

Downloads

Programming Sites

Top Stories
Regular Expressions

E-Mail

Date/Time
Home > Cutting Edge > Visual Studio 2005
Introducing Visual Studio 2005
Posted by on Saturday, January 01, 2005 (EST)

Microsoft has finally released Visual Studio 2005 Beta 1.This beta edition seems to be very stable and if you explore the features on it then it would be easy for you to work with its upcoming beta 2 and final edition.This article is a brief introduction to VS2005

This article has been viewed: 7,116 times
Technology: Visual Studio 2005.

Contents

Introducing Visual Studio 2005

Microsoft has finally released Visual Studio 2005 Beta 1. In fact, developers were eagerly waiting for the same. Prior to this release, Microsoft had released several preview editions and developers (including beta testers) had got a chance to explore the product and provide feedback to Microsoft. The current beta 1 edition seems to be very stable and if you explore the features on it then it would be easy for you to work with its upcoming beta 2 and final edition.

Visual Studio 2005 Beta 1 can be freely downloaded by clicking here [^]. The product is also available in the form of CD’s for those enrolled in Microsoft’s Beta Testing Program.

You can submit bug reports and other issues associated with the product through MSDN Product Feedback Center [^].You can also view submissions posted by other developers. In this article, I will examine three of the interesting features included with Visual Studio 2005 such as:

  • Surround With
  • Refactoring
  • Insert Snippet

Now let us examine each of the above features in detail

Top Go to Table of Contents

Surround With

Applicability: Visual C#

The Surround With feature enables you to automatically add a portion of the respective code syntax very easily. The main benefit of this feature is that the relevant code will be added instantly with the help of Visual Studio .NET and hence errors can be avoided. Your job is to dress up the blank spaces with the work to be done.

For instance, if you would like to add a do-while loop, it can be done by following certain simple steps

Double click the form to open the code window. Right click and select the option Surround With from the IntelliSense option of the popup menu (See Figure 1)

Figure 1

You will view a list box with lot of options as shown in Figure 2

Figure 2

For the purpose of this article, I’ve selected the do statement option. Double click on it and your code window will look like as shown below

Figure 3

You can add code snippets similar to the one shown above for almost every important task using this feature.

Top Go to Table of Contents

Refactoring

Applicability: Visual C#

Refactoring is one of the interesting features included with Visual Studio 2005. It enables you to automatically extract a certain portion of code snippet to a method. For instance, this feature will be useful if you have a source code with 2000 lines and you need to extract 550 lines of code from it.

The original code will be replaced with the created method call. Have a look at the walkthrough given below and you will understand the scene behind this cool feature

In order to work with this feature, you need to first add some code and select the same. Otherwise, IDE will show a message box as shown below.

Figure 4

Top Go to Table of Contents

0" />

Code Window before Refractoring

Figure 5

Right click the selected code and choose the Refractor -> Extract Method option. You will be presented with a dialog box as shown below

Figure 6

Enter a new method name. The method is a static method and is having private scope. Upon clicking OK, the selected code snippet will be enclosed inside the above method signature as shown in the figure given below

You can download [^] express editions of different products (Visual Basic 2005, Visual Web Developer 2005). Express editions are light weight products intended for students and hobbyists and their look and feel are very similar to that of Visual Studio 2005 IDE.

Top Go to Table of Contents

Insert Snippet

Applicability – Visual Basic 2005

This feature enables you to add full code snippet to your project. In order to see this in action, start a new Windows Application project by choosing the Visual Basic project type from within Visual Studio 2005. Add a Button control and double click on it to open the code window. Right click on the designer and select Insert Snippet menu from the popup menu (See Figure 8)

Figure 8

Upon selecting the above option, an IntelliSense window pops up with various options (See Figure 9)

Figure 9

These options enable you to add code snippets for performing a wide variety of tasks such as Accessing Databases, Performing Math operations and much more. Upon double clicking an option, the IDE will produce another set of IntelliSense window as per your selection.

For the purpose of this article, I have selected Processing Folders, Drives and Files option. You will be presented with an option box and the corresponding code as shown in Figures 10 and 11.

Figure 10

Figure 11

Even though Visual Studio provides this useful feature, you have to sometimes tweak the inserted code snippet to suit your requirements. You can also learn how to achieve various tasks by studying the code provided by this functionality.

Top Go to Table of Contents

Essential Resources

Visual Studio 2005 Beta Home [^]

Visual Studio 2005 Product Feedback Center [^]

MSDN Documentation for Visual Studio 2005 [^]

The .NET Show: Introduction to Visual Studio 2005 [^]

Visual Studio 2005 Express Beta Products [^]

Top Go to Table of Contents

Related Books

Introducing Microsoft Visual Basic 2005 for Developers [^]
Microsoft Press

Introducing Microsoft ASP.NET 2.0 [^]
Microsoft Press

Top Go to Table of Contents

Conclusion

As you can see from the above explanations, Visual Studio 2005 greatly simplifies the costly development time of developers than its previous versions. There are many features available with Visual Studio 2005 Beta 1 and it is not possible to discuss all of them in an article. I suggest you to refer to the essential resources listed above if you require further information regarding Visual Studio 2005.

Top Go to Table of Contents

About Anand Narayanaswamy

Anand Narayanaswamy (Microsoft MVP) works as an independent consultant and runs NetAns Technologies (www.netans.com) which provides affordable and reliable web hosting services for the community. He also runs Webhostinghotel.com, which provides affordable ASP.NET, SQL Server hosting services for developers. Anand also runs LearnXpress.com, Dotnetalbum.com and regularly contributes articles, product and book reviews for various websites. He can be reached at ananddotnet@yahoo.co.in

Click here if you want to know more about .

Other articles that may interest you

  • Write a Word Add-In – Part 0
  • Write a Word Add-In – Part I
  • Lengthy Operations on Single Thread in .NET Application
  • Learning Draughts
  • Exceptions and Performance
  • Average Rating :

    Discussion Forums
    Got a programming related question? Hopefully someone has the answer... Want to help out other developers? Visit our discussion forums.

    Sponsored by:

    New Articles

  • Exceptions and Performance
    Almost every time exceptions are mentioned in mailing lists and newsgroups, people say they're really expensive.Let's examine that claim, shall we?

  • Creating multilingual websites - Part 1
    Extend the existing globalization capabilities of .NET to create flexible and powerful multilingual web sites. First, create a custom ResourceManager, and then create custom localized-capable server controls to easily deploy multilingual functionality.

  • Parameter passing in C#
    Many people have become fairly confused about how parameters are passed in C#, particularly with regard to reference types. This page should help to clear up some of that confusion

  • Most Popular Articles

  • LDAP, IIS and WinNT Directory Services
    This article explains how to use .NET Directory Services to retrieve and search directory objects, create new directory objects and edit or delete existing directory objects. Describes Active Directory Application Mode (ADAM) and how to use the IIS, WinNT and LDAP directory (ADSI) provider.

  • An in-depth look at WMI and instrumentation, Part II
    WMI stands for Windows Management Instrumentation and, as the name indicates, is about managing your IT infrastructure this article is the second part of a two-part series.

  • An in-depth look at WMI and instrumentation, Part I
    WMI stands for Windows Management Instrumentation and, as the name indicates, is about managing your IT infrastructure this article provides an in-depth look at WMI and MOM 2005

  • New Books

  • Murach's ASP.NET 2.0 Upgrader's Guide: VB Edition
    What’s new and how to use it! That’s what this book delivers if you’re a VB developer who’s interested in upgrading from ASP.NET 1.x to ASP.NET 2.0.

  • C# in easy steps
    Learn to program with Microsoft’s premier programming language. No previous programming knowledge is assumed. With numerous easy-to-follow examples, this title explains the essentials of object-oriented programming with C#.

  • Murach's ASP.NET web programming with VB.NET
    Murach's ASP.NET web programming with VB.NET by Doug Lowe and Anne Prince is a in depth training and reference book for ASP.NET programming using VB.NET. The book builds upon Murach's previous books and covers more advanced concepts for programming ASP.NET pages.

  • Got Code?

    if you have any article , source code , or anything else you'd like to share with this community that you think others might find useful, please submit it here and we will gladly make it available on this site. submit@developerland.com.
    Partners

    All articles are copyrighted by their individual authors unless otherwise specified , everything else Copyright ©2004-2006 DeveloperLand