Visual basics Express Project
-
Upload
iftikhar-ahmed -
Category
Engineering
-
view
27 -
download
0
Transcript of Visual basics Express Project
VISUAL BASIC EXPRESS
IFTIKHAR AHMED
RAY KASHIF
UMER SAEED
UNIVERSITY OF ENGINEERING AND TECHNOLOGY, LAHORE
INSTITUTE OF ENVIRONMENTAL ENGINEERING, RESEARCH AND SCIENCES
Group Members
Contents
What is Visual basic
Element of visual basic express
My project on visual basic
How to make 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
Element Of Visual Basic Express
Tool bar
Form window
Project window
Properties window
Tool box
Use of visual basic expressWe may write window form application
Console applications
WPF application
Class library
WPA window application
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
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
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 .𝑡 𝑠
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
Button 1(create)
Click on button
Write coding or declare function
Add reference Microsoft Excel 14.0 object library
Coding is given below
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.
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.
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.
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).