Dialog Boxes. Slide 2 The OpenFileDialog and SaveFileDialog Controls All dialog boxes derive from the CommonDialog class and share similar features The.

Slides:



Advertisements
Similar presentations
Interaction Design: Visio
Advertisements

Exporting Records to a File. Perform a search and retrieve records on the Search Results screen.
VOCABULARY MOD2-22.
* 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.
Copyright © 2012 Pearson Education, Inc. Chapter 11 MORE WINDOWS CONTROLS & STANDARD DIALOG BOXES.
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.
Introduction to PowerPoint
© by Pearson Education, Inc. All Rights Reserved. continued …
XP Information Technology Center - KFUPM1 Microsoft Office FrontPage 2003 Creating a Web Site.
1 Prototyping for HCI Spring 2004 (Week 7) Jorge A. Toro.
Wimba Pronto Office Hours of the ND University System April 2009.
Lab 5: Thematic Maps & workspaces You have a parcel file that contains a field containing property values. How do you see the property value patterns throughout.
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Advanced Microsoft Word Using Templates & Protecting Documents Rich Malloy Greenwich Continuing Education.
Access Lesson 4 Creating and Modifying Forms
Operating Systems Day 7. Status Bar in Notepad 1.Open notepad and type a document or file 2.Click on view menu 3.Select status bar to display the status.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Chapter 3 Introduction to Event Handling and Windows Forms Applications.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
GAO YUAN We are here for:  We know iPhone from iOS Human Interface Guidelines  The guidelines and principles that help you.
®® Microsoft Windows 7 Windows Tutorial 6 Searching for Information and Collaborating with Others.
1 Lesson 6 Exploring Microsoft Office 2007 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
1 Lesson 6 Exploring Microsoft Office 2007 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
File Handling. Data Files Programs that can only get data from the user interface are limited. –data must be entered each time. –only small amounts of.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 4 1 Microsoft Office FrontPage 2003 Tutorial 4 – Using Shared Borders and Themes.
1. Chapter 9 Maintaining Documents 3 Managing Files As with physical documents, folders, and filing cabinets, electronic files and folders must be well.
Windows Management Computer Literacy 1 Transition Plus Services.
The Common Dialog Box. Installing the Common Dialog Box May NOT be your standard VB toolbox.
With Windows 7 Introductory© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 Windows 7 Introductory Chapter 2 Managing Libraries Folders, Files.
Chapter 5 Menus, Common Dialog Boxes, and Methods Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 1 1 Microsoft Office FrontPage 2003 Tutorial 1 – Creating a Web Site.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
BIL528 – Bilgisayar Programlama II Introduction 1.
Lesson 11: Looking at Files and Folders what a file or folder is on the computer how to recognize a file or folder on the desktop how to recognize the.
Lecture Set 12 Sequential Files and Structures Part A – Dialog Boxes, Filters, Directories.
Chapter 10 Sequential Files and Structures. Class 10: Sequential Files Work with different types of sequential files Read sequential files based on the.
Creating a backup file Downloading a backup file Uploading a backup file Resetting or restoring your course from a backup file.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 3.1 Test-Driving the Welcome Application 3.2.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Lecture 7 Dialog Controls MDI Parent/Child Interaction.
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.
Places Bar The Places bar contains shortcuts to five standard folders: History, Desktop, My Documents, My Computer, and My Network Places. (We’re looking.
Common Dialogs.  What is a Common Dialog/Why use them?  Open Dialog  Save File As Dialog  Color Dialog  Font Dialog  Print Dialog.
The Professional Touch Programming Right from the Start with Visual Basic.NET 1/e 10.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
By: Ms. Abeer Helwa 1. CREATE A WORD DOCUMENT 2 Blank document Templates To create a new blank document: click the File tab and click Blank document.
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.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
1 After completing this lesson, you will be able to: Get around the Internet with your browser. Connect to the Internet. Print Web pages. Save Web pages.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
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.
Windows Management Computer Literacy 1 Transition Plus Services.
 You won’t write a single line of program code.  Instead, you’ll use visual programming techniques.  Visual Studio processes your actions (such as mouse.
Lesson 11 Exploring Microsoft Office 2007
Microsoft Word 2016 Lesson 1.
Working with Data Blocks and Frames
Introduction to HTML.
Tips for Importing References from
Introduction to Basic Interface of
Sequential Input and Output using Text Files
Multi-host Internet Access Portal (MIAP) Enhancement Guide
Multi-form applications and dialogs
Other Features – Filter Options
Creating a Windows Forms User Interface
Providing an area on a PowerPoint slide that users can write into.
Menus and Dialogs.
Lecture 5 Menu Strip Demo with Dialog Controls.
Step 1:. Open Microsoft FrontPage application.
Presentation transcript:

Dialog Boxes

Slide 2 The OpenFileDialog and SaveFileDialog Controls All dialog boxes derive from the CommonDialog class and share similar features The OpenFileDialog and SaveFileDialog controls are derived from the CommonDialog class These classes allow the end user to select a file to open or save The FolderBrowserDialog control also derives from the CommonDialog class This control allows the end user to select a folder

Slide 3 Members of the OpenFileDialog and SaveFileDialog Classes The CheckFileExists and CheckPathExists properties control whether the end user can select a file or folder that does not exist The FileName property contains the filename selected by the end user The Filter property defines the type of files that will be displayed for selection The FilterIndex property contains the index of the current filter The Filter and FilterIndex properties work together

Slide 4 Members of the OpenFileDialog and SaveFileDialog Classes (continued) The InitialDirectory property contains the initial folder where the search for files begins The OverwritePrompt property applies only to the SaveFileDialog. If True, the end user will be prompted before a file is overwritten The RestoreDirectory property defines whether the current directory will be restored after the end user selects a file The ShowDialog method displays the respective dialog box 4

Slide 5 The Filter Property (introduction) The Filter property restricts the files displayed based on a file extension A filter consists of A description Followed by a vertical bar Followed by the actual filter Multiple filters can be connected together Do not put spaces between the vertical bars

Slide 6 The Filter Property (Example) Set the Filter to three possible filters (*.txt), (*.rtf), and (*.*) Set the FilterIndex to select the second filter by default ofdMain.Filter = "Text files (*.txt)|*.txt|" _ "Rich text files (*.rtf)|*.rtf|All files" _ "(*.*)|*.*" ofdMain.FilterIndex = 2

Slide 7 Using the SaveFileDialog Control The SaveFileDialog control works the same way as the OpenFileDialog control Set the OverwritePrompt property to True to prevent the end user from accidentally overwriting files

Slide 8 The FolderBrowserDialog (Introduction) Use the FolderBrowserDialog to browse for folders instead of files Members The Description property contains the text appearing in the title bar The RootFolder property contains the topmost folder appearing in the dialog box The SelectedPath property contains the folder selected by the end user The ShowDialog method displays the dialog box

Slide 9 Using Windows-Defined Directories Members of the System.Environment class are used to get system directories The SystemDirectory property gets the Windows system directory The directory is typically C:\Windows\System32 The CurrentDirectory property contains the directory from which the application was run The GetFolderPath method gets a system special folder

Slide 10 Color (About) Color is made up of RGB values and an “alpha” value that controls opacity Values range between 0 and ,255,255 is white 0,0,0 is black

Slide 11 The ColorDialog (Introduction) It works the same way as the other dialog boxes Call ShowDialog to display the dialog box The Color property contains the selected color Properties AllowFullOpen allows the user to select custom colors FullOpen displays the full color palette

Slide 12 The FontDialog (Introduction) It works the same way as the other dialog boxes Call ShowDialog to display the dialog box There are many more properties to work with ShowApply, ShowColor, ShowEffects control how the dialog box appears Font gets or sets the desired font MaxSize and MinSize control the selectable font sizes

Slide 13