Hi!
I have a form with embedded MS WebBrowser control. Upon clicking in
the embedded webbrowser on a link that calls JavaScript's
window.open() call where I pass different width, height, top, left and
other parameters, I open a new form of the same type as the original.
I noticed that the webbrowser in the newly opened form is shifted to
the right and bottom leaving gray areas on the left and top of the
form. I narrowed down the problem to the Top and Left parameters being
pass in window.open().
If I set these parameters = 0, the browser positions itself nicely
within the form. If these parameters != 0 , the browser is shifted to
the right and bottom.
I figured that I can adjust the layout etc in the ClientToHostWindow()
event which seems to fire. However, I have not been able to reposition
the browser. What can I do ? If I do not fix this, I'll have to spend
months fixing all 7500+ instances of the window.open() in all web
pages.
I can email you a test form if you wish.
I am also open to the idea of taking the browser control and painting
it onto a new location. I am open to whatever works as I am pretty
desperate.
Many Thanks in Advance,
--Mike |