The Professional Touch Programming Right from the Start with Visual Basic.NET 1/e 10.

Slides:



Advertisements
Similar presentations
* 1 Common Dialog Control. * 2 You want your user to set property or provide your application with some information easily? How do you do it? The Common.
Advertisements

Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
Foundation Level Course
110-H1 More VB Tools Creating a Menu: What is a menu? a group of (related) commands displayed at at the top of an application Top level menu Disabled command.
Dialog Boxes and Menus. Menus Menu Bar Contains menus which drop down to display list of menu items Each item has a name and text property Each item has.
File Access, Dialog Boxes, Error Handling, and Menus Chapter 5.
Introduction to PowerPoint
Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.
IS 1181 IS 118 Introduction to Development Tools VB Chapter 06.
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
 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.
Using Multiple Forms. Creating a New Form ProjectAdd Windows Form.
MENUS AND THE MENU EDITOR Elements of a Menu Menu bar Menu title Separator bar Menu items.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 ADVANCED MICROSOFT POWERPOINT Lesson 7 – Working with Visual and Sound Objects Microsoft Office 2003: Advanced.
Chapter 3 Introduction to Event Handling and Windows Forms Applications.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
1 Windows Printing. 2 Objectives You will be able to Output text and graphics to a printer. Print multipage documents. Use the standard Windows print.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Saving and Loading Simple Text Files A sequential file stores characters one after the other like songs on a cassette tape. New characters are added to.
Visual Basic Chapter 1 Mr. Wangler.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Printer & Dialog boxes Engr. Faisal ur Rehman CE-105T Spring 2007.
Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.
5-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures.
Chapter 5 Menus, Common Dialog Boxes, and Methods Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Graphics and Procedures Programming Right from the Start with Visual Basic.NET 1/e 5.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
File Input and Output (I/O) Engineering 1D04, Teaching Session 7.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Slide 1 Using Menu Bar & Common Dialog Boxes. Slide 2 Setting Up the Main Items v First open the form on which you want the menu located v Then start.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Chapter 5 Menus, Sub Procedures and Sub Functions Programming In Visual Basic.NET.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Written module activity, Page 16 1.We refer to the physical parts of a computer that we can touch and see as hardware. Examples include the mouse, the.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
Compunet Corporation Programming with Visual Basic.NET Working with Menus and Dialog Boxes Week 14 Tariq Aziz and Kevin Jones.
1 Pertemuan 01 Explore state-of-the art tools Matakuliah: U0344 / DESKTOP 1 Tahun: 2006.
Visual Basic.NET BASICS Lesson 14 Menus and Printing.
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.
Chapter 8 Adding Multimedia Content to Web Pages HTML5 & CSS 7 th Edition.
Building a Simple Text Editor. Create a text editor with the following features: (1) Uses a MenuStrip with File, and Edit tabs (2) The user can create.
1 Displaying Dialog Boxes Kashef Mughal. 2 Midterm Stats Here we go  Average was  Low was 116  High was 184  Mid Quarter Grade - check any.
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Using Multiple Forms.
Program and Graphical User Interface Design
File Input/Output (I/O)
Creating a Windows Forms User Interface
Lecture 5 Menu Strip Demo with Dialog Controls.
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

The Professional Touch Programming Right from the Start with Visual Basic.NET 1/e 10

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 2 Objectives Create and work with menus Create and work with Font and Color Dialog boxes Create and work with Print and PrintPreview Dialog boxes

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 3 Objectives (cont.) Perform simple text file input/output (I/O) Add Multimedia controls to your application Develop applications that combine standard dialogs, text file I/O, and multimedia

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Menus A menu is a list of common operations presented to the user in a well-defined, system-universal format. The main menu is a horizontal menu that is permanently visible during the lifetime of the application.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 5 Creating Menus Visual Studio provides a Menu Designer that makes it easy to add a main menu to your application. The first step is to add a MainMenu control to your solution.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 6 Creating Menus (cont.)

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 7 Writing Code for Menu Items

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Standard Dialog Boxes Another professional touch for your application is the use of standard dialog boxes for tasks such as working with fonts, colors, printing, and files. Dialog boxes can be created at design time or programatically as they are needed.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Font and Color Dialogs The ColorDialog control represents a preconfigured dialog that displays the standard “Color” dialog box, allowing the user to select a color or define a custom color. To display the color dialog box, call the ShowDialog method.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Font and Color Dialogs (cont.)

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Font and Color Dialogs (cont.) The FontDialog control represents a preconfigured dialog that displays the standard Font dialog box. To display the font dialog box, call the ShowDialog method.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Font and Color Dialogs (cont.)

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Text File Input/Output The OpenFileDialog control represents a preconfigured dialog for selecting a file to be opened. The SaveFileDialog control shares much of the behavior of the OpenFileDialog control, including capturing a string value for FileName.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 14 Streaming Data To transfer data between the application and a file, you must write your own data transfer logic. The StreamReader class is designed for character input. The file to be read from can be opened using the File.OpenText(path) function.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 15 Streaming Data (cont.)

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 16 Streaming Data (cont.) The StreamWriter class is also designed for character output. The file to be written to can be assigned using the File.CreateText(path) function.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 17 Streaming Data (cont.)

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Print and PrintPreview Dialogs The PrintDialog control is a preconfigured dialog box used to select a printer, choose the pages to print, and determine other print-related settings in Windows applications.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Print and PrintPreview Dialogs (cont.) The PrintPreview control is a preconfigured dialog box used to display how the document will appear when printed. The PageSetupDialog control is a preconfigured dialog box that allows users to manipulate page settings, including margins and paper orientation.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Multimedia The Windows Media Player control plays video and sound files in many different formats. The media player is not part of the standard toolbox, but it can be added from the Tools menu.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 21 Chapter Summary A menu is a list of common operations presented to the user in a graphical format. Visual Studio provides a series of dialog controls, which provide significant functionality with little effort.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 22 Chapter Summary (cont.) The StreamReader class is designed for character input. The Windows Media Player control plays video and sound files in many different formats.

The Professional Touch Programming Right from the Start with Visual Basic.NET 1/e 10