Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all

i want to open a new MS paint window on a button click
button is placed on win form
Posted

Hi,

just create the event handler for the button click and add the following line to the handler:

System.Diagnostics.Process.Start("mspaint");
 
Share this answer
 
Comments
sharmarun 15-Sep-10 2:19am    
thanxz alot
C#
string path = System.IO.Path.Combine(Environment.SystemDirectory, "mspaint.exe");
System.Diagnostics.Process paintProcess = new System.Diagnostics.Process();
paintProcess.StartInfo.FileName = path;
paintProcess.Start();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900