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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -