reference for paintbrush

satya

New member
Joined
Dec 7, 2007
Messages
1
Programming Experience
Beginner
i want to open microsoft paint brush using vb.net and make use of it, so i want to know how to do that.
 
Shelling to MSPaint.exe

If you want to call MSPaint.exe from you application...

VB.NET:
Diagnostics.Process.Start("mspaint.exe")

This will load MS Paint and then move on to the next line of code you have. There are other ways to "Shell and Wait"

VB.NET:
            Dim oShell As Process = Process.Start("mspaint.exe")
            oShell.WaitForExit()
            oShell.Dispose()
Note: you may have to fully qualify the path to MSPaint... c:\windows\mspaint.exe
 
Back
Top