Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie question about opening a file
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00884883
Message ID:
01303853
Vues:
13
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform