Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie question about opening a file
Message
 
À
10/03/2004 12:04:49
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00884883
Message ID:
00884902
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform