1

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?

abatishchev
  • 98,240
  • 88
  • 296
  • 433
Rafik Bari
  • 4,867
  • 18
  • 73
  • 123
  • 1
    This may be relevant -- http://stackoverflow.com/questions/6484567/how-to-set-the-height-of-a-window-using-c – BeemerGuy Sep 16 '12 at 15:53

1 Answers1

2

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.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
  • @Daniel, why do you think so? It answers the OP's question who is asking how to display the results of some background operation in a web browser and have the possibility to control the width, height and start position of this browser window. Or am I wrong? – Darin Dimitrov Sep 16 '12 at 15:54
  • RunWorkerCompleted saved my day! Thankyou @Darin Dimatrov – Rafik Bari Sep 16 '12 at 16:09