0% found this document useful (0 votes)
25 views

Programming Languages

The document discusses different types of programming languages including formal languages, object-oriented programming, event-driven programming, and visual basic. It also covers topics like .NET framework, Visual Studio IDE, and creating a basic visual basic project.

Uploaded by

chiyofinds
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Programming Languages

The document discusses different types of programming languages including formal languages, object-oriented programming, event-driven programming, and visual basic. It also covers topics like .NET framework, Visual Studio IDE, and creating a basic visual basic project.

Uploaded by

chiyofinds
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Programming languages

 formal languages
 used to communicate instructions to a computer.
 create software, applications, and websites that can be executed by computer.
 Java, Python, JavaScript, C++, and Ruby.

Object-Oriented Programming (OOP)

 “objects”, which contain data and code.


 Data in the form of fields (attributes)
 Code in the form of procedures (methods).
 Java, C++, Python, Ruby, etc.

an object’s procedures can access and modify the data fields of the object with which they are
associated.

Event-Driven Programming

 flow of the program is determined by user actions (mouse clicks, key presses), sensor
outputs, or messages from other programs.
 different sets of code based on the user’s interactions.
 suitable for graphical user interfaces, interactive applications, and real-time systems.
 JavaScript, Python with certain libraries

VISUAL BASIC 1.0 (1991)

 create Windows applications using a visual drag-and-drop interface.


 based on the BASIC programming language and included a set of pre-built controls.

VISUAL BASIC 3.0 (1993)

 added support for 16-bit Windows applications.


 more advanced visual editor, improved debugging tools, and support for object-oriented
programming.
VISUAL BASIC 4.0 (1995)

 32-bit Windows applications.


 new features like the ability to create ActiveX controls

VISUAL BASIC 5.0 (1997)


 focused on improving the development environment
 support for creating web-based applications using ActiveX Data Objects (ADO).

VISUAL BASIC 6.0 (1998)

 the final version


 better support for creating distributed applications, improved database connectivity,
and enhanced development tools.

ENHANCED FEATURES OF VB 2010


1. IMPROVED INTELLISENSE
 context-aware code completion suggestions as you type.
 reducing errors and improving productivity.
2. MULTI-TARGETING
 target different versions of the .NET Framework, making it easier to maintain and
update applications.
 Developers could choose the target framework version during project creation or switch
between versions later.
3. DYNAMIC LANGUAGE RUNTIME (DLR) SUPPORT
write dynamic code that could be executed at runtime.
4. LANGUAGE INTEGRATED QUERY (LINQ)
query and manipulate data from various sources, such as databases, XML, and
collections, using a unified syntax.
5. AUTO-IMPLEMENTED PROPERTIES
 simplified the syntax for creating properties.
 define properties without explicitly writing the underlying private field.
6. IMPLICIT LINE CONTINUATION
write code across multiple lines without using the line continuation character.
7. WINDOWS PRESENTATION FOUNDATION (WPF) DESIGNER
provided a visual interface (drag-and-drop functionality, property editing, and real-time
rendering of UI elements.)

VISUAL STUDIO INSTALLATION


1. Extract ISO file and run the set-up
2. Click “Install Microsoft Visual Studio 2010”
3. Click on activated Next button.
4. Install ff components:
 VC 9.0 Runtime (x86)
 VC 10.0 Runtime (x86)
 Microsoft .NET Framework 4
 Microsoft Visual Studio 2010 Ultimate RC
5. complete installation requires 5.9 GB disk space on hard drive.
6. Possible to continue with custom installation option.
7. After you select Visual Studio 2010 components to install, the setup wizard continues
with installing the components and features
8. When installation is completed, success dialog screen is displayed

VISUAL BASIC 2010


fourth version of Visual Basic that runs on the .NET framework and the tenth overall version of
Visual Basic.
.NET Framework

 initially released in early 2002


 runs primarily on Microsoft Windows.
 execute in a software environment known as the Common Language Runtime (CLR)—
provides security, memory management, and exception handling.
 class library and the CLR together constitute the .NET Framework.

Microsoft produces an INTEGRATED DEVELOPMENT ENVIRONMENT (IDE) for .NET


software development called Visual Studio.

Version 1.0 | 2002 | Visual Studio.NET

Version 1.1 | 2003 | Visual Studio.NET 2003

Version 2.0 | 2005 | Visual Studio.NET 2005

Version 3.5 | 2008 | Visual Studio.NET 2008

Version 4.0 | 2010 | Visual Studio.NET 2010

SETTING THE PROJECT LOCATION FOLDER

 Locate the Tools


 Click Option
 Navigate to Projects and Solutions, then click General
 Click the “…” button to the right of the “Projects location”
(Projects Location dialog then appears.)
 Navigate to the desired folder where you want to save your projects.
(Projects created here will be saved in a folder called “VB2010 Projects” on
the Desktop)
 Navigate to the Desktop folder, then click the Make New Folder button
 “New Folder” will be created
 Rename the folder VB2010 Projects and click OK.
 Click OK to close option screen

MICROSOFT VISUAL BASIC 2010 INTERFACE


File Menu: create, debug, add components and save a VB project
Toolbar: Copy, Paste, Save, Inserting comments, Debugging and other debugging options.
Toolbox: text boxes, labels, command buttons and others available in VB.
Form/Code window: add the controls we mentioned in the Toolbox onto the Form
Solution Explorer: project information including VB forms, references and other project
related items
Properties: review properties of form controls. You can also change objects properties anything
from size to dimensions to color.

To create a new project, click the New Project link off of the VB 2010 Express Start Page

 New Project dialogue will appear


 Select project type Windows Form Application and Console Application
 default name “WindowsApplication1” is offered.
 Change to “”Hello World” then click OK

Solution Explorer – displays all objects inside the current solution such as Forms, Classes,
Modules, Custom Controls
Properties – solutions, projects, classes, forms, modules, and controls, all of which possess
different attributes or properties. can be either changed in design time or at runtime. To change
these properties at design time, the Properties window is used.
Forms Designer
the heart of your application; it is the "screen" or ”window” that your users will interact with.
Toolbox

 not displayed in the IDE(default)


 consists of the various objects that you will use to design your application– controls
 textboxes, command buttons, radio buttons, checkboxes, etc.
 to pin the Toolbar, click the “pushpin” icon on the Toolbox’s title bar.

Objects in VB.NET project are automatically given a “numeric name” ( “Form1”, “Form2”.). It
is good programming practice to rename these objects to something more meaningful.

2 BASIC WAYS TO PLACE A CONTROL

 double click the desired control


 click the desired control once then draw the control on the form manually

SELECTING MULTIPLE CONTROLS

 click on one control with your mouse, hold the Ctrl key, and click the other controls.
 “lasso” the desired controls with your mouse

“.vbproj” VB project file extension


VB project file specifies which files (forms, modules, classes, etc.) as well as other resources are
included in the project.

frmHello.vb. main form file, contains the VB code.


When this file was created, two other related files were also created:
frmHello.Designer.vb, contains all the settings needed to build the form interface;
frmHello.resx, contains any binary resources needed by the form.
Bin

 program executable is stored here


 2 folders: Debug and Release
 By default, the program executable is written to the Debug folder.
 Opening the Debug folder, we see HelloWorld.exe. This is the program executable. If
you double-click that, your program will run outside of the IDE, like a normal Windows
program
Obj. consists of intermediate binary files used by the system when building the program
executable.

To open the project through Windows, navigate to the folder containing your project’s solution
(.sln) file, and double-click it.
To open your project through VB 2010 Express

 click the “Open Project” link on the Start Page, and navigate to your solution file from
there
 Another way is to click the link to that project under “Recent Projects”
 Or through the File menu, Open Project option.

You might also like