Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
7 views
Introduction to Visual Basic.NET Programming In Visual Basic.NET. - 20250114_190449
.net
Uploaded by
Agripino Verdera Jr.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Introduction to Visual Basic.NET Programming In Vi... For Later
Download
Save
Save Introduction to Visual Basic.NET Programming In Vi... For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
7 views
Introduction to Visual Basic.NET Programming In Visual Basic.NET. - 20250114_190449
.net
Uploaded by
Agripino Verdera Jr.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Introduction to Visual Basic.NET Programming In Vi... For Later
Carousel Previous
Carousel Next
Save
Save Introduction to Visual Basic.NET Programming In Vi... For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 32
Search
Fullscreen
Introduction to Visual Basic.NET Programming In Visual Basic.NETWriting Windows ay Applications with VB 2 * Windows Graphical User Interface * Window = Form ¢ Toolbox of elements called Controls — Text Box — Label — Check Box — ButtonObject Model * Object ==> Noun * Event ==> Occurs when the — Form and Controls user takes action ae — User clicks a button, User * Property ==> Adjective . perty uJ moves a form — Color of a Form ~ Size of Text * Class ==> Template to * Method ==> Verb create new object — Move a Form ~ Each control added is an Instance of a ClassObject Model Analogy oe) * Class = automobile * Properties = make, model, color, year * Object = each individual car — Object is an Instance of the automobile class * Methods = start, stop, speedup, slowdown « Eyents = car arrives, car crashes, car is purchasedDot Notation a; * Used to reference object's properties and a: methods in code — Object dot Property * Form.Text, TextBox.Text — Object dot Method * Form.Hide( ), TextBox.Focus( ) To reference an object's events use an underscore in the Private Sub name and use a dot in the Handles subclause of the Private Sub statement * Private Sub Button_Click () Handles Button.ClickVisual Basic.NET a ¢ Included in Visual Studio.NET — Visual Basic (can also be purchased separately) — C++ — C# — .NET Framework * Complete rewrite from VB Version 6Visual Studio.NET Editions @) * Academic ¢ Professional ¢ Enterprise Developer ¢ Enterprise Architect“a, Steps for Writing VB Projects a * Design/Define the User Interface * Plan/Set the Properties Plan/Write the Code ¢ Test and DebugVB Application Files ” “gk Open this file directly to work on a Project One Solution File sin Solution User Options File .Suo Project Files .vbproj Project User Options File Form Files Resource File for the Form .vbproj.user .vb .TeSXVisual Studio Environment g) * Integrated Development Environment (IDE) ¢ Form Designer ¢ Editor for entering code * Compiler ° Debugger ¢ Object BrowserVisual Studio IDE Start ee q , Start Po9e | eoroject Dialog “SD Visual Bask Projects Gy Setup and Deployment Projects (6-G Other Provects ‘visual studio Solutions: *— waza Class Library Windows Control Library a & & ASP.NET Web ASP.NET Web Web Control Application Service Library {A project For creating an pplication with a Windows user interface Name: MyVBProject Location: AMY VOProjects Project will be created at C:\MyVBProjects\MyVBProject. _stee_| aIDE Main Window Toolbars Document Window ° Form Designer Solution Explorer Properties Window Toolbox Class View ° Dynamic Helpsalneaie ga Ste oe Femi. Desi] |VB Toolbox ¢ Holds the tools you place on a form fbi TextBox & manmenu WM checkbox © RadioButton ] GroupBox laf] PictureBox (2 Panel SL DataGrid EW ListBox ED CheckedtistBox [3 ComboBox General Clipboard RingVisual Studio Help a 3 ¢ Extensive Help feature * Includes Microsoft Developer Network library (MSDN) ¢ Entire reference manual * Coding examplesModes * Design Time ¢ Run Time ¢ Break Time “Look at the Title Bar”Naming Conventions (p 43-44) a aa ¢ Always use standard names for objects * No spaces or punctuation marks * 3 letter lowercase prefix identifies control type » Button-bin * Label-lbl * Form-fim ¢ If multiple words capitalize 1st letter of each wordRecommended Naming Conventions for VB Objects Object Class Prefix | Example Form frm frmDataEntry Button btn btnExit TextBox txt txtPaymentAmount Label Ibl IbITotal Radio Button rad radBold CheckBox chk chkPrintSummary Horizontal ScrollBar | hsb hsbRate Vertical ScrollBar vsb vsbTemperature PictureBox pic picLandscape ComboBox cbo cboBookList ListBox Ist IstIndegredientsHello World Project (p 13) a ¥ Design the User Interface * Eien IbIMessage btnPush btnExitSet the Properties * Label — Name — Text * Button 1 — Name = Text ¢ Button 2 — Name — Text * Form — Name =] Text IblMessage leave blank btnPush Push Me btnExit Exit frmHello Hello World by your name| © (DynamicProperties re Rename Labell AccessibleDescri to IbIMessage AccessibleName AccessibleRole Default AllowDrop False (Name) Indicates the name used in code to identify the object.Set the Project's Startup a; Object Re * The default startup object is Form! * The name of the form should always be changed to adhere to naming rules ¢ Using Project menu, Properties change the startup object to match the new nameWrite the Code a “igh St While the project is running the user can perform actions Each action by the user causes an Event to occur Write code for the events you care about, the events you want to respond with code Code is written as event procedures VB will ignore events for which you do not write codeEditor Window ¢ Declarations Section * Class list ¢ Method list [?efrmttetto =] [g@btnPush_click > =| Public Class frmiello Inherits System.Windows.Forms.Form » a Private Sub btnPush Click(ByVal sender As System.Object, By' | End Sub End ClassRemark Statement a) « Also known as Comments, used for documentation ¢ Non-executable * Automatically colored Green in Editor * Begins with an apostrophe (' ) — Ona separate line from executable code — At the right end of a line of executable code ' Display the Hello World messageAssignment Statement oe * Assigns a value to a property or variable * Operates from right to left ¢ Enclose text strings in quotation marks ("") IbIMessage.Text="(Hello World)"Ending a Program a ¢ Execute the Close Method of the Form * Methods always have parentheses (this will help you distinguish them from Properties which never have parentheses) ¢ Current Form may be referenced as Me Me.Close( )Test and Debug * Save Project - File Menu, Save All * Run Project — Debug Menu, Start — Start Without Full Compile >| (FS) — Start With Full Compile (CTRL F5) ¢ Correct any Errors and Rerun — Compile errors — Run-Time Errors — Logic errors — Syntax errorsPrint the Code ¢ File Menu, Print * Prints complete code listing ¢ Uses arrow symbol / to denote line continuation * Examine sample output (Handout)Finding and Fixing Errors ow nae: * Syntax Errors (easy to see in editor) ¢ Run-Time Errors (identified when executed) ¢ Logic Errors (harder to find)
You might also like
Bradley Vb10 PPT Ch01
PDF
No ratings yet
Bradley Vb10 PPT Ch01
35 pages
Lesson 1
PDF
No ratings yet
Lesson 1
27 pages
CSC301 - Chapter 1
PDF
No ratings yet
CSC301 - Chapter 1
27 pages
01. Introduction to Visual Basic
PDF
No ratings yet
01. Introduction to Visual Basic
41 pages
Introduction To Programming Using Visual Basic 6
PDF
100% (1)
Introduction To Programming Using Visual Basic 6
69 pages
Chapter 1 - Introduction To Application Development
PDF
No ratings yet
Chapter 1 - Introduction To Application Development
41 pages
Introduction To Visual Basic
PDF
No ratings yet
Introduction To Visual Basic
40 pages
Vbu 1
PDF
No ratings yet
Vbu 1
19 pages
1 Introduction To Visual Basic
PDF
No ratings yet
1 Introduction To Visual Basic
26 pages
By The End of This Practical Section, The Students Should Be Able To
PDF
No ratings yet
By The End of This Practical Section, The Students Should Be Able To
23 pages
Chapter 2 Intoduction Visual Programming
PDF
No ratings yet
Chapter 2 Intoduction Visual Programming
66 pages
Chapter One Introduction To Visual Basic Word
PDF
No ratings yet
Chapter One Introduction To Visual Basic Word
36 pages
Introduction To Visual Basic.
PDF
No ratings yet
Introduction To Visual Basic.
13 pages
JK VB - Net - 4 Hello World
PDF
No ratings yet
JK VB - Net - 4 Hello World
21 pages
VB.net
PDF
No ratings yet
VB.net
13 pages
An Introduction To Visual Basic 2010
PDF
100% (1)
An Introduction To Visual Basic 2010
71 pages
فيجول١
PDF
No ratings yet
فيجول١
9 pages
VB 1-5 Unit - 240620 - 220336
PDF
No ratings yet
VB 1-5 Unit - 240620 - 220336
48 pages
Complete VB
PDF
No ratings yet
Complete VB
159 pages
Learning Visual Basic & Oracle
PDF
No ratings yet
Learning Visual Basic & Oracle
772 pages
Visual Basic 1
PDF
No ratings yet
Visual Basic 1
70 pages
Chapter One Introduction to Visual Basic word(AP)
PDF
No ratings yet
Chapter One Introduction to Visual Basic word(AP)
36 pages
علوم الحاسبات (برمجة) (محاضرة 1-5)
PDF
No ratings yet
علوم الحاسبات (برمجة) (محاضرة 1-5)
65 pages
VB1
PDF
No ratings yet
VB1
56 pages
College of Science and Technology: Covenant University, Canaan Land, Ota, Nigeria
PDF
No ratings yet
College of Science and Technology: Covenant University, Canaan Land, Ota, Nigeria
33 pages
To Visual Basic: Prepared By: Mercy Ann G. Giere
PDF
No ratings yet
To Visual Basic: Prepared By: Mercy Ann G. Giere
20 pages
Itc2301 P2
PDF
No ratings yet
Itc2301 P2
23 pages
Visual Basic Manual
PDF
No ratings yet
Visual Basic Manual
101 pages
VB
PDF
No ratings yet
VB
2 pages
Topic 3-4
PDF
No ratings yet
Topic 3-4
23 pages
Intro To Programming
PDF
No ratings yet
Intro To Programming
113 pages
Microsoft Visual Basic 6.0: Applied Science
PDF
No ratings yet
Microsoft Visual Basic 6.0: Applied Science
54 pages
Structure of A Visual Basic Application
PDF
No ratings yet
Structure of A Visual Basic Application
12 pages
C# Unit-3
PDF
No ratings yet
C# Unit-3
133 pages
Microsoft Visual Basic 6.0: Applied Science
PDF
No ratings yet
Microsoft Visual Basic 6.0: Applied Science
52 pages
Visual Studio 2010
PDF
No ratings yet
Visual Studio 2010
22 pages
Introduction To VB (Lesson One)
PDF
No ratings yet
Introduction To VB (Lesson One)
22 pages
Unit1 VB
PDF
No ratings yet
Unit1 VB
131 pages
Lec 02
PDF
No ratings yet
Lec 02
27 pages
LESSON 1 - Getting Started A
PDF
No ratings yet
LESSON 1 - Getting Started A
29 pages
Unit 1
PDF
No ratings yet
Unit 1
47 pages
Visual Basic Programming
PDF
No ratings yet
Visual Basic Programming
12 pages
At The Momenet There Is No Freeware Version of Visual Basic Available: - (
PDF
No ratings yet
At The Momenet There Is No Freeware Version of Visual Basic Available: - (
7 pages
Introduction To Visual Basic 6
PDF
No ratings yet
Introduction To Visual Basic 6
31 pages
النسخة الكاملة لمحاضرات VB6
PDF
No ratings yet
النسخة الكاملة لمحاضرات VB6
54 pages
Visual Basic
PDF
No ratings yet
Visual Basic
83 pages
VB.NET Part2.ppt
PDF
No ratings yet
VB.NET Part2.ppt
51 pages
Module 4
PDF
No ratings yet
Module 4
19 pages
Lecture 1 PDF
PDF
No ratings yet
Lecture 1 PDF
8 pages
Structure OF Programming Languages
PDF
No ratings yet
Structure OF Programming Languages
43 pages
Visual Programming - PDF
PDF
100% (1)
Visual Programming - PDF
143 pages
LESSON 1 - Getting Started: Friday, September 24, 2010friday, September 24, 2010
PDF
No ratings yet
LESSON 1 - Getting Started: Friday, September 24, 2010friday, September 24, 2010
11 pages
Visual Programming Notes-2
PDF
No ratings yet
Visual Programming Notes-2
72 pages
Visual Basic
PDF
No ratings yet
Visual Basic
21 pages
Self - Learning Module - 1 - Q4
PDF
No ratings yet
Self - Learning Module - 1 - Q4
7 pages
Principal of Computer Science: Lec. Dr. Nuha H. Al-Hasan
PDF
No ratings yet
Principal of Computer Science: Lec. Dr. Nuha H. Al-Hasan
10 pages
Chapter 2: The Visual Environment: From Problem Analysis To Program Design
PDF
No ratings yet
Chapter 2: The Visual Environment: From Problem Analysis To Program Design
50 pages
Basics of VB
PDF
No ratings yet
Basics of VB
26 pages
slidesaver.app_whcuaq
PDF
No ratings yet
slidesaver.app_whcuaq
18 pages
WEEK 2_2D GAME ART DEV
PDF
No ratings yet
WEEK 2_2D GAME ART DEV
4 pages
Tagline Games
PDF
No ratings yet
Tagline Games
50 pages
Long Quiz Part5 and 6
PDF
No ratings yet
Long Quiz Part5 and 6
18 pages
Introduction to Visual Basic.NET Programming In Visual Basic.NET. - 20250114_190509
PDF
No ratings yet
Introduction to Visual Basic.NET Programming In Visual Basic.NET. - 20250114_190509
32 pages
Long Quiz Mil Lesson 3 and 4
PDF
No ratings yet
Long Quiz Mil Lesson 3 and 4
34 pages
Long Quiz #1
PDF
No ratings yet
Long Quiz #1
36 pages
CSS3 Part 1 and 2 LONG qUIZ
PDF
No ratings yet
CSS3 Part 1 and 2 LONG qUIZ
19 pages
Organizing The Production
PDF
No ratings yet
Organizing The Production
23 pages
Serverspaperpresentation 120107050051 Phpapp01
PDF
No ratings yet
Serverspaperpresentation 120107050051 Phpapp01
24 pages
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
Bradley Vb10 PPT Ch01
PDF
Bradley Vb10 PPT Ch01
Lesson 1
PDF
Lesson 1
CSC301 - Chapter 1
PDF
CSC301 - Chapter 1
01. Introduction to Visual Basic
PDF
01. Introduction to Visual Basic
Introduction To Programming Using Visual Basic 6
PDF
Introduction To Programming Using Visual Basic 6
Chapter 1 - Introduction To Application Development
PDF
Chapter 1 - Introduction To Application Development
Introduction To Visual Basic
PDF
Introduction To Visual Basic
Vbu 1
PDF
Vbu 1
1 Introduction To Visual Basic
PDF
1 Introduction To Visual Basic
By The End of This Practical Section, The Students Should Be Able To
PDF
By The End of This Practical Section, The Students Should Be Able To
Chapter 2 Intoduction Visual Programming
PDF
Chapter 2 Intoduction Visual Programming
Chapter One Introduction To Visual Basic Word
PDF
Chapter One Introduction To Visual Basic Word
Introduction To Visual Basic.
PDF
Introduction To Visual Basic.
JK VB - Net - 4 Hello World
PDF
JK VB - Net - 4 Hello World
VB.net
PDF
VB.net
An Introduction To Visual Basic 2010
PDF
An Introduction To Visual Basic 2010
فيجول١
PDF
فيجول١
VB 1-5 Unit - 240620 - 220336
PDF
VB 1-5 Unit - 240620 - 220336
Complete VB
PDF
Complete VB
Learning Visual Basic & Oracle
PDF
Learning Visual Basic & Oracle
Visual Basic 1
PDF
Visual Basic 1
Chapter One Introduction to Visual Basic word(AP)
PDF
Chapter One Introduction to Visual Basic word(AP)
علوم الحاسبات (برمجة) (محاضرة 1-5)
PDF
علوم الحاسبات (برمجة) (محاضرة 1-5)
VB1
PDF
VB1
College of Science and Technology: Covenant University, Canaan Land, Ota, Nigeria
PDF
College of Science and Technology: Covenant University, Canaan Land, Ota, Nigeria
To Visual Basic: Prepared By: Mercy Ann G. Giere
PDF
To Visual Basic: Prepared By: Mercy Ann G. Giere
Itc2301 P2
PDF
Itc2301 P2
Visual Basic Manual
PDF
Visual Basic Manual
VB
PDF
VB
Topic 3-4
PDF
Topic 3-4
Intro To Programming
PDF
Intro To Programming
Microsoft Visual Basic 6.0: Applied Science
PDF
Microsoft Visual Basic 6.0: Applied Science
Structure of A Visual Basic Application
PDF
Structure of A Visual Basic Application
C# Unit-3
PDF
C# Unit-3
Microsoft Visual Basic 6.0: Applied Science
PDF
Microsoft Visual Basic 6.0: Applied Science
Visual Studio 2010
PDF
Visual Studio 2010
Introduction To VB (Lesson One)
PDF
Introduction To VB (Lesson One)
Unit1 VB
PDF
Unit1 VB
Lec 02
PDF
Lec 02
LESSON 1 - Getting Started A
PDF
LESSON 1 - Getting Started A
Unit 1
PDF
Unit 1
Visual Basic Programming
PDF
Visual Basic Programming
At The Momenet There Is No Freeware Version of Visual Basic Available: - (
PDF
At The Momenet There Is No Freeware Version of Visual Basic Available: - (
Introduction To Visual Basic 6
PDF
Introduction To Visual Basic 6
النسخة الكاملة لمحاضرات VB6
PDF
النسخة الكاملة لمحاضرات VB6
Visual Basic
PDF
Visual Basic
VB.NET Part2.ppt
PDF
VB.NET Part2.ppt
Module 4
PDF
Module 4
Lecture 1 PDF
PDF
Lecture 1 PDF
Structure OF Programming Languages
PDF
Structure OF Programming Languages
Visual Programming - PDF
PDF
Visual Programming - PDF
LESSON 1 - Getting Started: Friday, September 24, 2010friday, September 24, 2010
PDF
LESSON 1 - Getting Started: Friday, September 24, 2010friday, September 24, 2010
Visual Programming Notes-2
PDF
Visual Programming Notes-2
Visual Basic
PDF
Visual Basic
Self - Learning Module - 1 - Q4
PDF
Self - Learning Module - 1 - Q4
Principal of Computer Science: Lec. Dr. Nuha H. Al-Hasan
PDF
Principal of Computer Science: Lec. Dr. Nuha H. Al-Hasan
Chapter 2: The Visual Environment: From Problem Analysis To Program Design
PDF
Chapter 2: The Visual Environment: From Problem Analysis To Program Design
Basics of VB
PDF
Basics of VB
slidesaver.app_whcuaq
PDF
slidesaver.app_whcuaq
WEEK 2_2D GAME ART DEV
PDF
WEEK 2_2D GAME ART DEV
Tagline Games
PDF
Tagline Games
Long Quiz Part5 and 6
PDF
Long Quiz Part5 and 6
Introduction to Visual Basic.NET Programming In Visual Basic.NET. - 20250114_190509
PDF
Introduction to Visual Basic.NET Programming In Visual Basic.NET. - 20250114_190509
Long Quiz Mil Lesson 3 and 4
PDF
Long Quiz Mil Lesson 3 and 4
Long Quiz #1
PDF
Long Quiz #1
CSS3 Part 1 and 2 LONG qUIZ
PDF
CSS3 Part 1 and 2 LONG qUIZ
Organizing The Production
PDF
Organizing The Production
Serverspaperpresentation 120107050051 Phpapp01
PDF
Serverspaperpresentation 120107050051 Phpapp01