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: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs