You are on page 1of 7

VISUAL PROGRAMMING

(DCO-612)
Practical Number: 1
Name of the Practical: Write all steps to install Visual Basic and also write a program to
Perform basic arithmetic operation.

Submitted by:
Mohd Rizwan Khan
Roll. No. 16-DCS-038
Diploma in Computer Engineering-6th Semester

Computer Engineering Section


University Polytechnic, Faculty of Engineering and Technology
Jamia Millia Islamia (A Central University)
New Delhi-115025
Session 2018-2019
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 apps, web
services and mobile apps. Visual Studio uses Microsoft software development platforms such
as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and Microsoft
Silverlight. It can produce both native code and managed code.

Visual Studio includes a code editor supporting IntelliSense (the code completion component) as well
as code refactoring. The integrated debugger works both as a source-level debugger and a machine-
level debugger. Other built-in tools include a code profiler, 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).

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#), F# (as of Visual Studio 2010) and TypeScript (as of Visual Studio 2013
Update 2). Support for other languages such as Python,Ruby, Node.js, and M among others is
available via language services installed separately. It also
supports XML/XSLT, HTML/XHTML, JavaScript and CSS. Java (and J#) were supported in the past.

Microsoft provides a free version of Visual Studio called the Community edition that supports plugins
and is available at no cost.

Steps to download and install Visual Basics:

Step 1) Visual Studio can be downloaded from the following


link https://www.visualstudio.com/downloads/

You can select

 Visual Studio 2017 Community Edition


 Visual Studio 2017 Professional Edition (30 Day Free Trial)
OR
 One can take it from another person using pen drives, cd or dvd.
We will use Visual studio 2012, with product key available.
Step 2)Click on the installer i.e. wdepress-full2012

Step 3) then you will get a dialog box of visual basic, asking for agreeing the agreements.
Step 4)
Then click on “I agree license and condition” then you will get an option to install.

Step 5)click on install button.


Then you will be asked for system permission, click on YES button.
And installation will proceed.
Step 6) Finally, after installing you will get a LAUNCH option.

Step 7) On clicking on LAUNCH, Visual Studio will open.


Program to create a simple calculator.

Add 6 textbox and 4 buttons in visual basic working box.

PROGRAM (of each buttons)


Public Class Form1

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click


Dim a, b, c As Integer
a = TextBox1.Text
b = TextBox2.Text
c = a + b
TextBox3.Text = c

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


Dim a, b, c As Integer
a = TextBox1.Text
b = TextBox2.Text
c = a - b
TextBox4.Text = c
End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click


Dim a, b, c As Integer
a = TextBox1.Text
b = TextBox2.Text
c = a * b
TextBox5.Text = c
End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click


Dim a, b, c As Integer
a = TextBox1.Text
b = TextBox2.Text
c = a / b
TextBox6.Text = c
End Sub
End Class

OUTPUT:

You might also like