iwebbrowser2's left, top, width and height functions do not work inside SetSite

  • Thread starter Thread starter omerfarukozer
  • Start date Start date
O

omerfarukozer

Hi,
I have written a BHO to control IE in different ways. I want the
browser to be fixed sized initially so I used put_left, put_top etc.
functions inside SetSite. However it seems that these functions do not
work.

When I implement the same code somewhere else (let's say when
DocumentComplete event is fired) it works fine.

Any idea?
 
Hi Omer,

Write your desired start-up position to the following registry key

HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\Main\[Window_Placement]

when your BHO detects IE Quiting, not starting.. I think...?

Regards.
 
Back
Top