I want to run an application from my code, that application can only be run with administrative rights. I am able to run the application successfully with the following code.
start = new ProcessStartInfo();
start.Arguments = drive;
start.Verb = "runas";
start.FileName = filepath;
start.WindowStyle = ProcessWindowStyle.Normal;
start.CreateNoWindow = false;
using (exeProcess = Process.Start(start))
{
exeProcess.WaitForExit();
}
Following MessageBox appears;
What I want to do is I want to suppress above mentioned Windows Messagebox, and show my own designed Messagebox. Kindly guide me how can I do it.