Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie question about opening a file
Message
 
To
10/03/2004 13:25:23
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00884883
Message ID:
00884940
Views:
17
>And what would the syntax be if I loaded the filename from a variable?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim MyPicFile As String
        MyPicFile = "c:\myPicture.bmp" && or obtained from somewhere outside the _Click event

        Dim ProcID As Integer
        ' Run MS Paint. Typically there is a system path to C:\WINNT\System32, so you don't really have to specify the full path to MSPAINT.EXE
        ProcID = Shell("mspaint.exe " & MyPicFile, AppWinStyle.NormalFocus)

End Sub
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform