[Mono-bugs] [Bug 461247] New: Exception with WebBrowser. ScrollBarsEnabled control under Windows

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Dec 20 18:37:05 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=461247


           Summary: Exception with WebBrowser.ScrollBarsEnabled control
                    under Windows
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Blocker
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ctype at mail.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User


Description of Problem: Bug with WebBrowser control


Steps to reproduce the problem:
WebBrowser wb = new WebBrowser();
wb.ScrollBarsEnabled = false;

full code:
using System;
using System.Windows.Forms;

namespace webbrowser2
{
        class Program
        {
                [STAThread]
                public static void Main(string[] args)
                {
                        WebBrowser wb = new WebBrowser();
                        wb.ScrollBarsEnabled = false;


                        Console.Write("Press any key to continue . . . ");
                        Console.ReadKey(true);
                        Console.WriteLine();
                }
        }



Actual Results:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.Windows.Forms.WebBrowser.set_ScrollBarsEnabled (Boolean value)
[0x00000]
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.WebBrowser:set_ScrollBarsEnabled (bool)
  at webbrowser2.Program.Main (System.String[] args) [0x00000]

Expected Results:
Without error (as in .net)

How often does this happen? 
Always


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list