S satya New member Joined Dec 7, 2007 Messages 1 Programming Experience Beginner Dec 7, 2007 #1 i want to open microsoft paint brush using vb.net and make use of it, so i want to know how to do that.
i want to open microsoft paint brush using vb.net and make use of it, so i want to know how to do that.
P Pete (BSC) Well-known member Joined Oct 19, 2007 Messages 89 Programming Experience 10+ Dec 20, 2007 #2 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 Upvote 0 Downvote
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