Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie question about opening a file
Message
 
To
10/03/2004 12:04:49
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00884883
Message ID:
00884902
Views:
9
This message has been marked as the solution to the initial question of the thread.
>Hello,
>I am working with an application where I have a button that I want to make open a .bmp file in paint. It seems likes it should be so easy to do, but the answer eludes me. Any help would be appreciated.
>
>Thanks!
>
>MAC
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim ProcID As Integer
        ' Run Paint and open the picture ( you may assign the picture filename to a variable)
        ProcID = Shell("C:\WINNT\system32\mspaint.exe c:\myPicture.bmp", 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
Next
Reply
Map
View

Click here to load this message in the networking platform