Introduction to VB programming Dr. John P. Abraham UTPA Chapters 2 & 3.

Slides:



Advertisements
Similar presentations
Chapter 2 –Visual Basic, Controls, and Events
Advertisements

Compunet Corporation Programming with Visual Studio.NET GUI Week 13 Tariq Aziz and Kevin Jones.
Chapter Creating Applications With Visual Basic 2.
 2002 Prentice Hall. All rights reserved. Chapter 2 - Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Overview of the Visual Studio.NET.
110-C1 Chapter 2 of the text: _ text boxes, group boxes, check boxes, radio buttons, picture boxes _ defining access keys tab sequence setting the focus.
Chapter 2 –Visual Basic, Controls, and Events
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
1 INF110 Visual Basic Programming AUBG Spring semester 2011 Reference books: Schneider D., An Introduction to Programming Using Visual Basic, Prentice.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
© 2006 ITT Educational Services Inc. Introduction to Computer Programming: Unit 1: Chapter 2: Slide 1 Unit 1 Introduction to Programming Using VB.NET Chapter.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
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,
Menus,MonthCalender, DateTimePicker, MDI,Tree View, List View,
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Menus,MonthCalender, DateTimePicker, MDI,Tree View, List View,
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Assignment #1 Advanced Computer Programming.
CSCI Chapter 2 Creating Application with Visual Basic Instructor: Bindra Shrestha University of Houston – Clear Lake.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Starting Out with Visual Basic.NET 2 nd Edition Chapter 2 Creating Applications With Visual Basic.NET.
Introduction to Visual Basic.NET Chapter 2 Introduction to Controls, Events.
Chapter 2 - More Controls More controls – Text boxes - used for user input – Frames - containers to group items – check boxes - user select an option -
Introduction to the Visual Studio.NET IDE (LAB 1 )
Introduction to Visual Basic.NET Your First Visual Basic.NET Application.
Chapter 2 –Visual Basic, Controls, and Events
11-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Visual Basic.NET Windows Forms Hello World Homework Assignment.
Chapter 2 - VB 2008 by Schneider1 Chapter 2 –Visual Basic, Controls, and Events 2.1 An Introduction to Visual Basic 2.2 Visual Basic Controls 2.3 Visual.
ADO.NET Objects – Data Providers Dr. Ron Eaglin. Requirements Visual Studio 2005 Microsoft SQL Server 2000 or 2005 –Adventure Works Database Installed.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
1 Advanced Computer Programming Lab Calculator Project.
Created by Alia Al-Abdulkarim 2008 Visual Basic Vs. Java.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Using ADO.Net to Build a Login System Dr. Ron Eaglin.
ADO.NET Objects Data Adapters Dr. Ron Eaglin. Agenda Builds on Information in Part I Should have working knowledge of creating a database connection Continuation.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Files and Streams. What is a file? Up until now, any stored data within a program is lost when the program closes. A file is a permanent way to store.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Chapter 2 - VB 2008 by Schneider1 Chapter 2 –Visual Basic, Controls, and Events 2.1 An Introduction to Visual Basic 2.2 Visual Basic Controls 2.3 Visual.
Visual Basic Declaring Variables Dim x as Integer = 0 In the statement above, x is being declared as an Integer (whole number) and is initialised.
Visual Basic Fundamental Concepts
Chapter 1: An Introduction to Visual Basic 2015
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
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
CSCI 3327 Visual Basic Chapter 11: Files and Streams
Introduction to VB programming
Files and Streams.
للمزيد زورونا على موقعنا الإلكتروني:
Visual Basic..
The University of Texas – Pan American
CIS16 Application Development Programming with Visual Basic
1.الدوال Function 2.الاجراءاتSub Procedure 3.وحده نمطيه Add Module
Chapter 3.5 Input and Output
Introduction to Programming
Introduction to VB programming
STARTING OUT WITH Visual Basic 2008
CIS 338: Images on Forms Dr. Ralph D. Westfall May, 2009.
Reading from File & Picture Boxes
Files and Streams.
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Chapter 11 Saving Data and Objects In Files
GUI Programming in Visual Studio .NET
Presentation transcript:

Introduction to VB programming Dr. John P. Abraham UTPA Chapters 2 & 3

Continued from last week’s demo Difference between label and text boxes Properties window –Changing name and text –Border Style –AutoSize –BackColor –Font Size –Visible –TabIndex

Solution Explorer Show all files

Visual Basic Controls Choose Windows forms application What you see is the IDE (Integrated Development Environment) Use Sizing handle to make the form Adjust the size of the properties window Tac the toolbox –Use common controls Start placing objects on the form Place a button, label it Exit and add code me.close()

Applications Console –Output appears in console window –From Visual studio choose VB and choose a new project, and choose Console Application, Give it a name. –Follow Chapter 3. Window

Demo of Hello program Dim name As String Console.Write("Please Enter your Name > ") name = Console.ReadLine() Console.Write("Hello " & name & "!") Console.ReadLine()

Adding a pop-up message box Add a form to the application Add this line MessageBox.Show("Hello " & name & "!", "Show Message")

Discuss Assignment that was turned in Explain input –Public Class FrmBreak1 – Dim num As Integer – Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReadNum.Click – num = InputBox("Enter a Number", "Read Number") – lblNumber.Text = num – End Sub –End Class

Program submission Program print out Program Run Place them in a manila folder

Writing to sequential file – For Future Submissions Imports System.IO Public Class SeqFileWrite Dim fileName As String Dim fileWriter As StreamWriter Dim output As FileStream Private Sub btnFileSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFileSave.Click fileName = txtFileName.Text output = New FileStream(fileName, FileMode.Create, FileAccess.Write) fileWriter = New StreamWriter(output) fileWriter.WriteLine("Hello World") fileWriter.WriteLine("My Name is: John Abraham, Now this works.") fileWriter.Close() End Sub End Class