c# - How Do I Open Paint Maximized with a File -


i'm trying open mspaint maximized , open file @ same time. know how open file paint , view image, can't manage open paint image , having paint maximized.

here code:

static void butten1(object sender, eventargs e) {         processstartinfo info = new processstartinfo() {         filename = "mspaint.exe",         windowstyle = processwindowstyle.maximized         };         process.start(info);         } 

pass in file name parameter.

var filepath = @"c:\icon.png"; processstartinfo info = new processstartinfo() {     filename = "mspaint.exe",     windowstyle = processwindowstyle.maximized,     arguments = filepath }; process.start(info); 

note works because paint interprets first parameter file open. means solution work paint , other apps try open what's passed in first parameter.


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -