Running External Applications 1. There are times when you may wish to run an external application from a VB application. 2 External Applications.

Slides:



Advertisements
Similar presentations
How To Make Your Own Web Page: Basic Web Design
Advertisements

Cardiff University e-Learning: Blackboard Support 6 Virtual Learning Environment An Instructors Guide to Managing Courses with the Control Panel Click.
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Learning the Basics – Lesson 1
Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
Corporate Property Automated Information System (CPAIS) Macro Walkthrough Guide for Excel Version 2003.
About Links in Dreamweaver. Creating Links A link has 2 parts: –The URL (Uniform Resource Locator)= the name and path of the file you want to link –The.
CPSC 203 Introduction to Computers Tutorial 59 & 64 By Jie (Jeff) Gao.
Links and Comments.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
1 of 4 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Beginning A PowerPoint Presentation  To begin click on the Windows 2000 folder. Then double click on PowerPoint. If you do not see a Windows 2000 folder.
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.
Start -> All Programs -> Classes -> Web Expressions -> Dreamweaver.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
TUTORIAL NO. 24 Create Alerts and files in EBSCO.
Chapter Accreditation Online System Usage Tutorial Department of Member Relations & Grants National Children’s Alliance.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Downloading © Copyright William Rowan Objectives By the end of this you will be able to Download text and images from the internet for analysis,
®® Microsoft Windows 7 Windows Tutorial 6 Searching for Information and Collaborating with Others.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
IPUB 100 Lesson 2 Instructor Mark Lamontagne Homework Review.
Using Dreamweaver. Slide 1 Dreamweaver has 2 screens that do different things The Document window where you create your WebPages The Site window where.
Scoring Program Updates & XML upload to the NSRCA web site July 2013.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Dreamweaver MX Unit A CIS 205—Web Site Design & Development.
Using Visual Basic 6.0 to Create Web-Based Database Applications
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Another Method to Open WebSpace as a Web Folder Alternative Method for Creating Web Folder in WebSpace, Slide 1Copyright © 2004, Jim Schwab, University.
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
Defining a Website. Review…. Page Title −The text that will be displayed in the title bar of the browser window on a web page File Name −What you “call”
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
CPSC 203 Introduction to Computers Lab 23 By Jie Gao.
HTML Hyper Text Markup Language A simple introduction.
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
ECT 250: Survey of E-Commerce Technology FrontPage Publishing pages Unix.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Creating Links. The Anchor Element: The anchor tag can be used in three different ways: 1.External link – to link to a web page outside your own website.
Why are links important to a website? Web Design Course.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
January 2006Colby College ITS Setting Up Course Pages.
Double –Click on the Netscape Icon on your desktop The following are a series of steps to help you get started with Netscape Composer.
Website design and structure. A Website is a collection of webpages that are linked together. Webpages contain text, graphics, sound and video clips.
To be completed Your proposal  Your House style  Your site plan  Page plans (a draft layout for each of your five pages)  A design mock-up -  All.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Web Browsing *TAKE NOTES*. Millions of people browse the Web every day for research, shopping, job duties and entertainment. Installing a web browser.
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
SharePoint document libraries I: Introduction to sharing files Why document libraries? Sharing files with others is essential to getting things done nowadays.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
Vocabulary 2 Internet Vocabulary. online On the internet.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
ANGEL Penn State’s Course Management System Created by PSY Office of C&IS.
Hyperlinks Links for Other Pages. Hyperlink (aka Link) Text (or image) user can click Takes user to different location In general, location can be: On.
Making the website. Get your folders sorted first Create a new folder in “N” called “My hockey website” Create folders inside called “Documents”, “images”
The Web Web Design. 3.2 The Web Focus on Reading Main Ideas A URL is an address that identifies a specific Web page. Web browsers have varying capabilities.
Microsoft Office 2010 Basics and the Internet
Microsoft Office 2010 Basics and the Internet
Learning the Basics – Lesson 1
* First of all, you need to click “Start”, “Control Panel” and then System and Security. After this, you need to click on the link ‘Back up Your Computer’
A Brief Introduction to the Internet
Part 2 Setting up a web server the easy way
A01 DESIGN To be completed Your proposal  Your House style 
Steps in accessing Past Examination Papers
3.00 Understanding the Adobe Dreamweaver interface. (12%)
Making a non-linear slide show
Presentation transcript:

Running External Applications 1

There are times when you may wish to run an external application from a VB application. 2 External Applications

As another example, you are asked to create a VB program that tests a user’s knowledge of Microsoft Word. Part of the test is multiple choice (like Assignment-6) and part is hands-on. From your VB program, you want to open Word and a specific document, have the user make changes to the document, and then save it. This can be done using the Shell Method or the Process Class. 3 External Applications After learning about these two options, we will use them to create the interface shown on the previous slide. After learning about these two options, we will use them to create the interface shown on the previous slide.

Shell(“application_name”, windows_style) Shell(“c:\windows\notepad.exe”,AppWinStyle.NormalFocus) Shell(“c:\Program Files\Microsoft Office\Office14\winword.exe FontTest.doc”,AppWinStyle.NormalFocus) 4 Shell Method There are two additional parameters, but we will not examine them. See help on the Shell method for details.Shell method There are two additional parameters, but we will not examine them. See help on the Shell method for details.Shell method For additional window styles see: library/microsoft.visualbasic.appwinstyle.aspx For additional window styles see: library/microsoft.visualbasic.appwinstyle.aspx Since the paths can vary, using the Shell method on different computers can cause problems. Even on the same computer, there can be problems. Since the paths can vary, using the Shell method on different computers can cause problems. Even on the same computer, there can be problems. You cannot split a string across two lines. I needed the room! If no path is specified, VB searches the Documents folder not debug. If no path is specified, VB searches the Documents folder not debug.

Process.Start (“application_name”) Process.Start(“c:\windows\notepad.exe”) Process.Start (“document_name”) Process.Start(“FontTest.doc”) 5 Process Class Since the paths can vary, using the Process.Start on different computer can cause problems. Even on the same computer, there can be problems. Since the paths can vary, using the Process.Start on different computer can cause problems. Even on the same computer, there can be problems. If no path is specified, VB searches the debug folder not Documents. If no path is specified, VB searches the debug folder not Documents. The application associated with the file type is used. For additional information see Help on the Process.ClassProcess.Class For additional information see Help on the Process.ClassProcess.Class

Let’s look at VB and see how to create the interface to execute these three applications. 6

Accessing the Web 7

The first example we will look at is a VB project that opens the CIS 400 home page. This is done by using the WebBrowser control and setting some of its properties such as: AllowNavigation Dock Url 8 Accessing the Web For additional details about the WebBrowser class, visit: For additional details about the WebBrowser class, visit:

9 Let’s look at VB and see how to create this Web interface.

As another example, suppose you are working for the IT department of a school system, and you are asked to limit student access to only specific Web sites and links on those sites. Remember, in the previous topic, we were able to run IE from with VB. Unfortunately, IE has an address text box in which users can type any URL. To prevent this, you will use VB to create a browser interface that does NOT contain an address text box, thereby preventing users from typing a URL. 10 Accessing the Web You will also have to use some WebBrowser methods.

11 Let’s look at VB and see how to create this Web interface. ListBox of approved sites.