[IronPython] ScrollBarsEnabled problem

Dino Viehland dinov at exchange.microsoft.com
Tue Sep 12 19:45:58 CEST 2006

This might be a better question on a newsgroup specific to .NET or the IE web control.  Adding the ScrollBarsEnabled = False is the same as doing:

WebBrowser1 = WebBrowser()
WebBrowser1.ScrollBarsEnabled = True

There may be some way for a web site to forcibly enable scrolls bars even though you've requested that they're not displayed.  But IronPython should be accurately reporting the status of the property.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Floris van Nee
Sent: Sunday, September 10, 2006 10:06 AM
To: users at lists.ironpython.com
Subject: [IronPython] ScrollBarsEnabled problem


I've used IronPython for a few days now, and I'm making a program with it which has a WebBrowser control. I want the ScrollBarsEnabled property set to False. Now, my code to do that is:

WebBrowser1 = WebBrowser(ScrollBarsEnabled=False)

This works perfectly for most sites. However whenever I go to some sites, for example, www.runescape.com<http://www.runescape.com> , the scroll bars are enabled again. It seems that site runs some kind of override on my ScrollBarsEnabled property. But when I add an DocumentComplete event to the browser and let it show me a messagebox which contains the value of ScrollBarsEnabled it still returns 'False'  to me. So it seems IronPython thinks the scroll bars are disabled, but in fact they aren't.

Does anyone know if the scroll bars can be disabled in any other way which works in this case?

Thanks in advance,

Floris van Nee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060912/aecd4196/attachment.html>

More information about the Ironpython-users mailing list