A window application ---to know Dialogs (Week 7) ~csdywang/ta.htm.

Slides:



Advertisements
Similar presentations
Unit 02. ASP.NET Introduction HTML & Server controls Postbacks Page Lifecycle.
Advertisements

MS-Word XP Lesson 7.
Project 8 Creating Style Sheets.
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.
Alford Academy Business Education and Computing1 Advanced Higher Computing Based on Heriot-Watt University Scholar Materials File Handling.
Compunet Corporation Programming with Visual Studio.NET GUI Week 13 Tariq Aziz and Kevin Jones.
Using Multiple Forms. Creating a New Form ProjectAdd Windows Form.
Lesson 5: Doing More with WordPad. 2 Concept 5.1 Highlighting Text To change the format of text, you must highlight it first Highlighted text has a black.
CVEV 118/698 Visual Basic Lecture 3 Prof. Mounir Mabsout Elsa Sulukdjian Walid El Asmar.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Text to Speech Presented by Lorinda Tait from Lansing School District 8/8/2015 8/8/2015.
Adding Controls to User Forms. Adding Controls A user form isn’t much use without some controls We’re going to add controls and write code for them Note.
Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize.
3/9/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore Bostrup 1 Introduction to VB6 Week 2.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Printer & Dialog boxes Engr. Faisal ur Rehman CE-105T Spring 2007.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
CIS 338: Creating ActiveX Controls Dr. Ralph D. Westfall March, 2003.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Chapter 5 Menus, Common Dialog Boxes, and Methods Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
Dr Dat Tran - Week 4 Lecture Notes 1 ToolStrip Programming Graphical User Interfaces PG (7110) University of Canberra School of Information Sciences &
Putting Applets into Web Pages.  Two things are involved in the process of putting applets onto web pages ◦ The.class files of the applet ◦ The html.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
BIL528 – Bilgisayar Programlama II Introduction 1.
Chapter Two Creating a First Project in Visual Basic.
How to get started with Excel VBA. We need to enable programming in Excel  the “Developer menu”
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.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
BASIC WORD PROCESSORS WEEK 5. BASIC WORD PROCESSORS Word Processor Word processor is a program which is used to edit text files and format them with font,
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Chapter 5 Menus, Sub Procedures and Sub Functions Programming In Visual Basic.NET.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Error Trapping Exception Catching 1. Syntax & Compile-time  VB – Editor/Compiler Logic and Design  You Runtime  You Types of Errors: 2 When your program.
Compunet Corporation Programming with Visual Basic.NET Working with Menus and Dialog Boxes Week 14 Tariq Aziz and Kevin Jones.
Sorry, the pen lost control. Anyway, you need to download both the.vbp and the.frm for each project. I looked at PrCalc, I did not look at inventory.
More Visual Basic!. Creating a Standalone Program A standalone program will allow you to make a program file that can be run like other Windows programs,
Using Option Buttons. Option Buttons Are similar to checkboxes. Must appear in groups. Only one button in the group can be selected at a time. Sometimes.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
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.
Lessons Copy and Paste Text Drag and Drop Text 2-Saving Documents 3- Printing 4-Inserting Tables Modifying Page Layout Format Page Margins Insert a Blank.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
CIS 338: Dialog Boxes Dr. Ralph D. Westfall April, 2011.
Visual Basic Fundamental Concepts
Creating Data Base & Sql Data Source
3.01 Apply Controls Associated With Visual Studio Form
Visual programming Chapter 1: Introduction
3.01 Apply Controls Associated With Visual Studio Form
Using Multiple Forms.
Naming, Saving, & Retrieving Files
Visual Basic..
WordPad Starting WordPad!.
Creating a Windows Forms User Interface
Adding Record To Your Database
I dragged over the label tool (A icon) and put it on the form.
Creating Data Base & Sql Data Source
Module 8: Creating Windows-based Applications
CSCI N207 Data Analysis Using Spreadsheet
Searching Your Database
Lecture 5 Menu Strip Demo with Dialog Controls.
Understanding Buttons and TextBoxes
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
GUI Programming in Visual Studio .NET
Presentation transcript:

A window application ---to know Dialogs (Week 7) ~csdywang/ta.htm

Open a file in textbox using OpenFileDialog

Step1 New a VB window application. Remember: the location must be local disk. Drag a textbox from toolbox, set its multiline=true and change its size. Drag a button and change the text=Open Drag an OpenFileDialog. (Page down Windows Forms in toolbox and you will find it!)

Step2 Double click the button Add: –White italic: codes you need to add –Yellow italic: codes that already exist Imports System.IO Imports System.Drawing.Printing before Public Class Form1 Inherits System.Windows.Forms.Form Inherits System.Windows.Forms.Form

Step 2 contd Add Private FileName1 As String before Private Sub Button1_Click(…) Private Sub Button1_Click(…)

Step 3 The script for open a file is in s1. Please open it with WordPad. Copy the codes and run the program. Open a.txt file with it. Remove some codes between Try With and End With. Then, see the result again. If you have any questions about properties and methods of some classes, just use F1 to see the help.

Save a file Drag one more button and a SaveFileDialog Copy the codes that were written in s2. Run the program

ColorDialog Drag ColorDialog and one more button. The codes for button3 are in s3. Copy them. Run and change the color of shown texts.

Other Dialogs File all contains more codes for more dialogs, such as PrintPreviewDialog etc. If you interest, try to implement them in your application.