Alex Rivera | Logout

Opening process and changing window position

Asked 2010-06-13T12:41:04.607
16

I want to open from c# an application (standalone flashplayer) and set it position to (0,0) on the screen. How can I do this? So far I've managed to open flashplayer:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace swflauncher
{
    class Program
    {
        static void Main(string[] args)
        {
            Process flash = new Process();
            flash.StartInfo.WindowStyle = ProcessWindowStyle.Normal;

            flash.StartInfo.FileName = "D:\\development\\flex4\\runtimes\\player\\10\\win\\FlashPlayer.exe";
            flash.Start();
        }
    }
}
c#
Edit
Report

1 Answer

4

Try SetWindowPos as described here. This page shows how to call it from C#.

answered 2010-06-13T12:49:51.350

Your Answer