avoid IE control resizing ? by:Anonymous
|
I built a vb application which use internet explorer control (shdocvw.internetexplorer). How can I avoid javascript resizing for web site with such commands :
top.window.moveTo(0,0); if (document.all) { top.window.resizeTo(screen.availWidth,screen.availHeight);
I set explorer.resizable=false but this doesn't avoid the problem.
|
| | Reply: by:Cor Ligthert
|
| | Hi Oliver
I have it in this way,
Private Sub AxWebBrowser1_WindowSetResizable(ByVal sender As System.Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_WindowSetResizableEvent) Handles AxWebBrowser1.WindowSetResizable e.resizable = False End Sub
It helps better, however still not forever.
Cor
|
| | Reply: by:Anonymous
|
| | Thanks Cor but it doesn't work. Internet explorer control event is different than the one of axwebbrowser. I tried
Private Sub explorer_WindowSetResizable(ByVal Resizable As Boolean) Handles explorer.WindowSetResizable Resizable = False End Sub
but the windows went to full screen on http://www.nc-c.net
|
| | Reply: by:Cor Ligthert
|
| | Hi Oliver,
I was not sure from your message which one you was using and also not which part is in shdocvw implemented and which not, the IE part acts often not as you would expect when you read the documentation, because the documentation is than for the axshdocvw.
Cor
|
0 Comments:
Post a Comment