Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2007, 09:34 AM
Registered User
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default opening jpegs and mpegs in vb 2005

Hi,

Im trying to open jpegs and mpegs in their default programs using a simple form. the closest i got to makeing it work is this:


Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Dim psi As New ProcessStartInfo()
        psi.FileName = "C:\Documents and Settings\acorn\Desktop\vb\movie.wma"
        psi.UseShellExecute = True
        Process.Start(psi)
    End Sub

but it throws back an error stating it cannot find the file specified (yes iv double checked the path!)

Would be greatful for any idea's

Adam






Similar Threads
Thread Thread Starter Forum Replies Last Post
reg conn to sql server 2005 from vb.net 2005.. veda SQL Server 2005 2 July 1st, 2008 12:16 AM
Worked on ASP 2005 but new to VB 2005 akhilhp Visual Basic 2005 Basics 0 May 18th, 2007 12:37 AM
GDI+: Reading Exif Data From Jpegs Scripts82 General .NET 0 September 11th, 2006 11:34 PM
Splitting MPEGs ab_dev Linux 1 April 19th, 2006 10:32 PM
Opening VB.NET 2005 WROX Source code rezien1 Pro Visual Basic 2005 0 December 29th, 2005 04:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.