CS 2340: Programming in VB Instructor: Dr. Qi Yang Office: 213 Ullrich

Slides:



Advertisements
Similar presentations
Information System Design Lab 5&6. User Interface Design.
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Instructor: Adil Ibrahim Office: 212 Ullrich Phone: ibrahima 1.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
CS 2340: Programming in VB Instructor: Dr. Qi Yang Office: 213 Ullrich Phone: YangQ 1.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Introduction to VB.NET Tonga Institute of Higher Education.
CS 2340 Programming in VB.NET Instructor: Dr. Qi Yang Office: 213 Ullrich Phone: YangQ 1.
Microsoft Visual Basic 2005: Reloaded Second Edition
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
IE 411/511: Visual Programming for Industrial Applications
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg,
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
1. S:\Courses\CSSE\ibrahima\CS2340\Notes Folder Section1 Folder Section2 2.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
CS 2340: Programming in VB Lab 2 Due 9 pm, Friday, September 14 1.
Lab 2 Due 9 pm, Friday, September Put a “&” in button text The char after “&” is underlined and becomes the Access Key Example Text of btnExit:
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Dive Into® Visual Basic 2010 Express
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Visual Basic Fundamental Concepts
Chapter 1: An Introduction to Visual Basic .NET
Visual Basic.NET Windows Programming
Chapter 2: The Visual Studio .NET Development Environment
Chapter 1: An Introduction to Visual Basic 2015
Visual Basic Code & No.: CS 218
Introduction to Computer CC111
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming UTPA – Fall 2012 This set of slides is revised from lecture.
Apply Procedures to Develop Message, Input, and Dialog Boxes
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
1. Introduction to Visual Basic
Introduction to VB6 Week 1 3/2/2004 PPCC - Introduction to VB6
Visual programming Chapter 1: Introduction
3.01 Apply Controls Associated With Visual Studio Form
Introduction to the Visual C# 2005 Express Edition IDE
Using Procedures and Exception Handling
VISUAL BASIC.
Visual Basic..
Social Media And Global Computing Introduction to Visual Studio
Chapter 2 – Introduction to the Visual Studio .NET IDE
COMPUTER 2430 Object Oriented Programming and Data Structures I
Understanding the Visual IDE
The University of Texas – Pan American
CIS16 Application Development Programming with Visual Basic
Building an Application in the Visual Basic .NET Environment
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Introduction to Visual Basic 2010
Presentation transcript:

CS 2340: Programming in VB Instructor: Dr. Qi Yang Office: 213 Ullrich Phone: 342-1418 Email: YangQ

Web Sites http://people.uwplatt.edu/~yangq/cs234/

Three VB.NET Courses CS 2340: Programming in VB Prerequisite: CS1430 CS 3340: Windows Programming Prerequisite: CS2340 & CS2430 or CS2630 CS 3870: Web Protocols, Technologies and Applications Prerequisite: CS3340 Co-requisite: CS3630 (Database)

CS 2340: Course Description An introduction to event driven, object oriented programming techniques in VB.NET. Students will design, code, and debug Graphic User Interface (GUI) programs and apply the techniques to business applications.

CS 2340: Course Outcomes Upon completion of this course, students should be able to Design and develop Graphical User Interfaces; Understand and code Event-Driven procedures; Program Visual Basic controls proficiently; Access database from VB.NET programs; and Design, develop and test VB.NET programs.

CS 2340: Textbook Beginning VB.NET, 2nd Edition, Wrox Not .NET 2015

Academic Misconduct https://www.uwplatt.edu/dean-students/student-conduct

CS 2340: Course Work 8 Labs 160 (10 – 30 each) 6 Tests 200 (20 – 40 each) 1 Project 40 Total 400

New Grading System No Curve Course Grade Points Percentage Grade Points A 368 - 400 92% 4.0 A- 356 - 367 89% 3.7 B+ 348 - 355 87% 3.3 B 328 - 347 82% 3.0 B- 316 - 327 79% 2.7 C+ 308 - 315 77% 2.3 C 288 - 307 72% 2.0 C- 276 - 287 69% 1.7 D+ 268 - 275 67% 1.3 D 240 - 267 60% 1.0 F below 240 0.0 No Curve

Journal of Information Systems Education Hands-on Tests In all three VB courses Paper published in Journal of Information Systems Education Volume 16, Number 2, Summer 2005

Different Backgrounds CS 2340: Programming in VB Different Backgrounds If you have a very good background You should get an A You may not get an A Else If you have a good background You do not want to get a D Else (Don’t have any background in VB) You can get an A! Come to class every day and do your work!

CS 2340: Programming in VB Every one could get an A! That has never happened! Every one should pass CS 2340! That has never happened either! Just Do It!

Due 9 PM, Monday, September 12, 2011 Lab 1 10 points Due 9 PM, Monday, September 12, 2011 No Grace Time!

MS Visual Studio Every PC in Ullrich Free Copy on your PC Will receive email about it Follow instructions to get your copy Start VS 2015 Sign in: up to you (not now, maybe later) Development Settings: Visual Basic

Create a VB.NET Solution Start MS Visual Studio (Environment: Basic) New Project… Visual Basic Windows Windows Form Application Name: UserName_Lab1 YangQ_Lab1 Create directory for solution: Uncheck Location: Remember where is your program!

Save Project and Solution Make sure you know where is your program! Save all Create Solution folder: Uncheck Browse location Check program location

MS Visual Studio IDE (Integrated Development Environment) Title Bar Menu Bar Tool Bars Solution Explorer Properties Window ToolBox Auto Hide Docked, Floating and Tabbed Document Right click the title bar of the window or Drag the window to the position you want

Menu Bar / Tools / Options MS Visual Studio IDE IDE Settings Menu Bar / Tools / Options Environment Document Detect when file is changed outside the environment: Uncheck Projects and Solutions Always show solution: Check Save new projects when created: Check Text Editor Basic Tabs: Tab size : 3 Indent size: Same as Tab size Windows Forms Designer …

MS Visual Studio IDE View Help Visual Studio 2015 Search Google

Properties Window Right click the form Properties Events Alphabetical Categorized

Form Properties Name: frmLab1 Text Size FormBorderStyle StartPosition WindowState . . .

ToolBox Most controls available on ToolBox Tabs on ToolBox All Windows Forms Common Controls Putting a control on form Double Click Drag and Drop

Windows Controls Form frmLab1 TextBox Get Input Display Output txtName Label Display Information / Output lblName Button User action btnHello . . .

Click Event The button’s Click Event Users click a button when they want to do something. Event Procedure VB function that will be called when the event happens We will write the event procedure Click Event procedure template Double click the button

Declaring Variables Dim theName As String theName = txtName.Text ‘ This is comment ‘ To remove spaces from both ends theName = txtName.Text.Trim() We should get variable values from controls at the beginning, then use the variables, not the controls, in the code.

Class MessageBox Method Show MessageBox.Show(“Please Enter Your Name”) Caption (Title), MessageBoxButtons and MessageBoxIcon MessageBox.Show("Enter Your Name Please!", _ "Lab 1", MessageBoxButtons.OK, _ MessageBoxIcon.Exclamation) Line continuation char: “ _” VB has NO statement terminator

VB.NET is Getting Smarter! MessageBox.Show("Enter Your Name Please!", "Lab 1", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

String Operations ‘ Operators “&” and “+” append strings MessageBox.Show("Hello, " & theName + "!”) MessageBox.Show("Hello, " & theName + "!", "Lab 1”, MessageBoxButtons.OK, MessageBoxIcon.Information)

If Statement If theName = "" Then MessageBox.Show("Enter Your Name Please!", "Lab 1", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Else MessageBox.Show("Hello, " & theName + "!", "Lab 1", MessageBoxIcon.Information) End If

The Click Event Procedure Private Sub btnHello_Click(...) Handles btnHello.Click Dim theName As String theName = txtName.Text.Trim() If theName = "" Then MessageBox.Show("Enter Your Name Please!", "Lab 1", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Else MessageBox.Show("Hello, " & theName + "!", "Lab 1", MessageBoxIcon.Information) End If End Sub

Grader Down load the grader program with the input file Put both files in the same folder as your exe file (normally bin/debug) Select your exe file and the downloaded input file Run the grader program and click Single EXE File

Grader All controls, including the forms, MUST have the correct names Otherwise, your receive ZERO points!