Visual Studio

Working with Visual Studio

a10.PNG


Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services. Visual Studio uses Microsoft software development platforms such as Windows API etc. It can produce both native code and managed code.
The integrated debugger works both as a source-level debugger and a machine-level debugger. Other built-in tools include a forms designer for building GUI applications, web designer, class designer, and database schema designer. It accepts plug-ins that enhance the functionality at almost every level—including adding support for source-control systems (like Subversion) and adding new toolsets like editors and visual designers for domain-specific languages or toolsets for other aspects of the software development lifecycle (like the Team Foundation Server client: Team Explorer).

Advantages of Visual Studio as an IDE

  • The Visual Studio .NET Start Page

When you start Visual Studio .NET the first time, the environment displays the Start Page, showing its "My Profile" page (Figure 1). This page allows customizing the IDE towards your needs in a high-level manner. By default, the environment starts using the "Visual Studio Developer" profile. This defines a number of things, including the window layout, the keyboard scheme and the help filter.

  • Dynamic Help

Finding help has always been difficult. Microsoft has done a great job providing information about its products and technologies. The problem is finding it. There simply is too much of it!

Dynamic Help tries to solve this problem. The basic idea is that no matter what you do in Visual Studio .NET, the Dynamic Help window will display the most significant topics matching your current action. In Figure 5, I highlighted the "Sub" keyword in Visual Basic .NET source code, and the Dynamic Help shows Help, Samples and other matching topics

  • Windows Layout
a11.PNG

Screen Real Estate has always been a critical issue. This is even more true in a sophisticated environment such as the new Visual Studio .NET IDE, where you will use a large number of different windows. For this reason, it is of utmost importance that Microsoft provides a powerful, flexible and easy-to-use layout mechanism.

There are two different types of Windows in the Visual Studio .NET IDE: Document Windows and Tool Windows. Document Windows are typically positioned in the center of the IDE, in a tab-docked fashion. This means that all document windows use up all available space. Multiple windows are located on top of each other, and can be accessed using the tabs on top.

  • IDE options

I already showed you how to customize the IDE towards your needs on a very large scale. I'm now going to show you how to customize Visual Studio .NET in a very granular manner. Most of that kind of customization is done through the Tools/Options menu item (Figure 11). The number of settings is enormous, and there is no way I could explain them all in this article?but again, I'd like to point out a few to give you an idea of what's possible.

  • Supports Many languages
a3.PNG

Visual Studio supports different programming languages and allows the code editor and debugger to support (to varying degrees) nearly any programming language, provided a language-specific service exists. Built-in languages include C, C++ and C++/CLI (via Visual C++), VB.NET (via Visual Basic .NET), C# (via Visual C#), and F# (as of Visual Studio 2010[7]). Support for other languages such as M, Python, and Ruby among others is available via language services installed separately. It also supports XML/XSLT, HTML/XHTML, JavaScript and CSS.

  • Automatic Syntax Error highlight

Visual Studio highlights the syntax errors with a red underline as you build the code which helps greatly in error detection.

Capture1.PNG

What is C#?

A hybrid of C and C++, it is a Microsoft programming language developed to compete with Sun's Java language. C# is an object-oriented programming language used with XML-based Web services on the .NET platform and designed for improving productivity in the development of Web applications.C# is intended to be a simple, modern, general-purpose, object-oriented programming language.Its development team is led by Anders Hejlsberg. The most recent version is C# 5.0, which was released on August 15, 2012.

Why C# over other Languages

  • Modernised Language
a2.PNG
  • Type-safety
  • Object-Oriented
  • Simplified Syntax

Tic-Tac-Toe

Making a Form

Open a new project -> Visual C# -> Windows Form Application -> Name your project -> Save.

Making a Label

Go to Toolbox -> Containers -> Label
Properties can be edited later.

a5.PNG

The backend is implemented using C#.

Capture2.PNG
Capture4.PNG

Made By: Shubham Goswami 2014100
Praveen Kumar Jhanwar 2014078

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License