Visual basics Express Project

22
VISUAL BASIC EXPRESS

Transcript of Visual basics Express Project

Page 1: Visual basics Express Project

VISUAL BASIC EXPRESS

Page 2: Visual basics Express Project

IFTIKHAR AHMED

RAY KASHIF

UMER SAEED

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, LAHORE

INSTITUTE OF ENVIRONMENTAL ENGINEERING, RESEARCH AND SCIENCES

Group Members

Page 3: Visual basics Express Project

Contents

What is Visual basic

Element of visual basic express

My project on visual basic

How to make project

Page 4: Visual basics Express Project

Visual basic is actually a software like C++, Java , VB.

Sub software of visual basic is visual basic express.

Two Levels of Coding

1. Low Level

2. Advance Level

We use Low-Level Language in VB

What is Visual basic

Page 5: Visual basics Express Project

Element Of Visual Basic Express

Tool bar

Form window

Project window

Properties window

Tool box

Page 6: Visual basics Express Project

Use of visual basic expressWe may write window form application

Console applications

WPF application

Class library

WPA window application

Page 7: Visual basics Express Project

How We Work On Visual Basic Express

Open new project window

Select project type

Add tools in form 1 design

Give commands on button click

Show output in text box

Page 8: Visual basics Express Project

My Project On Visual Basic Express

The purpose of this assignment is to help prepare you for

adding data, charts and creating technical reports using

Excel and Word.

Prepare an Microsoft excel file on VB in the form of

coding.

My project is an experimental data

Page 9: Visual basics Express Project

ProblemIt is stated that an experiment was conducted by some engineering

students to study voltage, current, resistance, and power in a circuit that

consists of a voltage source and a resistive load (a light bulb) connected

in series. The output voltage of the voltage source, , was varied over 𝑉

time and the current, , through the circuit was measured, as shown in fig 𝐼

You have been asked to calculate some other quantities shown in fig ∆ 𝐸

represents the energy dissipated in the resistor over a time interval of ∆ = 𝑡

0.20 , and ∆ represents the charge flow through the resistor over a 𝑠 𝑄

time interval of ∆ = 0.20 .𝑡 𝑠

Page 10: Visual basics Express Project
Page 11: Visual basics Express Project

How I make my project

Insert 3 buttons on Form1

First button is for Create

Second button for open

Third one is for closing the file

Page 12: Visual basics Express Project

Button 1(create)

Click on button

Write coding or declare function

Add reference Microsoft Excel 14.0 object library

Coding is given below

Page 13: Visual basics Express Project
Page 14: Visual basics Express Project
Page 15: Visual basics Express Project
Page 16: Visual basics Express Project
Page 17: Visual basics Express Project

Button 2 & 3

After creating the excel file now I wants to open that

file so I write cod on second button and also entre the

correct location of my file.

Now in third button I wants to close my project so I

enter cod for this purpose.

Coding is given below.

Page 18: Visual basics Express Project
Page 19: Visual basics Express Project

Key points

There should be no mistake in coding.

Formulas enters in first button command must be right.

Number of rows and columns enters in coding must be entered

carefully.

In button 2 command file location must be correct otherwise you

are unable to open the file.

Page 20: Visual basics Express Project

Start Debugging

Code is proceed successfully if there is no mistake in

coding.

Click on button create to check either your file is

create or not.

Page 21: Visual basics Express Project
Page 22: Visual basics Express Project

Save file

Save file in your pc

Give correct name and location in the button 2 of coding file so that you

are able to open that file with the help of button 2 (Open).