Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 September 1st, 2004, 07:53 PM
Authorized User
 
Join Date: Jan 2004
Posts: 34
Thanks: 0
Thanked 1 Time in 1 Post
Default Opening a file in my program

How can I make it so that when I open a file my program starts and displays the file contents?

Thanks in advance.
 
Old September 2nd, 2004, 03:33 AM
Authorized User
 
Join Date: Jul 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I don't get what u mean by open in your program? Does that mean you want the file content to display in your own vb program or you just want to open up the file?

If that is so, you can use System.Diagnostics.Process.Start(fileURL)

Snowydust
 
Old September 2nd, 2004, 05:34 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

I assume following things.

You are creating a file of your own extension (.xxx) through your programme.

When people exploring files and clicks on that type of file (.xxx), it should get opened with the help of your VB programme.

If this is your requirement, the following link can help you.

http://www.vbaccelerator.com/codelib...mr/startup.htm

I hope you know how to set a register entry with the help of VB. If not, the following link will help you.

http://www.xploiter.com/programming/vb/visual2.shtml





Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening file 80240210 Flash (all versions) 0 July 24th, 2007 06:08 PM
Opening a file scoobie Pro Java 1 August 10th, 2006 02:30 PM
file opening jain_mj Visual C++ 0 November 4th, 2005 10:42 AM
file opening silver_cuts Classic ASP Basics 3 June 29th, 2004 01:57 AM





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