I am trying to load the Remote app in my windows form panel but i am not able to do it. Currently the remote app opens as a normal remote app. Is there any way I can open this remote app within the windows form.
Here is the code which get triggers when user pressed a button.
private void openProgram()
{
Process rdcProcess = new Process();
rdcProcess.StartInfo.FileName = Environment.ExpandEnvironmentVariables(@"%SystemRoot%\system32\cmdkey.exe");
rdcProcess.StartInfo.Arguments = "/generic:TERMSRV/xyz.domain.com /user:" + "username" + " /pass:" + "password";
rdcProcess.Start();
rdcProcess.StartInfo.FileName = Environment.ExpandEnvironmentVariables(@"%SystemRoot%\system32\mstsc.exe");
rdcProcess.StartInfo.Arguments = @"\\10.10.1.5\myshare\PSTools\Mozilla\RemoteFirefox.rdp";
rdcProcess.Start();
}