Rafik Bari
Rafik Bari

Reputation: 5037

Control the size of the browser window when i open a link using Process.Start()?

I cannot use Web Browser control to display html content because i'm using Background worker to open the form.

And therefor i'm using Process.Start() to open a link that contain only a facebook like button

Process.Start("http://www.example.com");

Is there any possibility to control the size of opened window (Height, Width) and start position?

Upvotes: 1

Views: 917

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038850

I cannot use Web Browser control to display html content because i'm using Background worker to open the form.

In this case you could perform this inside an Invoke delegate. Or since you are using a BackgroundWorker use the RunWorkerCompleted event which is executed once the background task completes.

Upvotes: 2

Related Questions