Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  Avoid IE control resizing ? (Tuesday, December 21, 2004)




Found the following interesting discussion in the Newsgroups:

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

 
Previous Posts
    - Newbie needs help with command line paramaters
    - How to decalre this in VB.net
    - Full screen mode
    - Application quits unexpectedly
    - How to Strong Name
    - Thread Form
    - mutli threaded application shuts down all copies o...
    - Killing off a Descendant
    - ISynchronizeInvoke.Invoke call
    - How to build *.dll ?

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006

Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland