Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie question about opening a file
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00884883
Message ID:
01303853
Views:
14
>>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
>
Hmmm, I think there may be better approaches similar to using ShellExecute. I also would like to open a file by the default application. What do you use for this?

Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform