[Mono-bugs] [Bug 537131] New: DesignSurface View property throws exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 7 02:29:46 EDT 2009


           Summary: DesignSurface View property throws exception
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andreas.flucke at t-online.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=316971)
 --> (http://bugzilla.novell.com/attachment.cgi?id=316971)
Testcase Unbenannt.cs

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 4.0.20506)

The attached testcase creates a Form component with
After that it trys to get the Designsuface View.
This leads to an InvalidOperationException: DesignSurface isn't loaded.
This maybe isn't the preferred way to get the designer working, but it works
with MS.Net.

     DesignSurface ds = new DesignSurface();
     IDesignerHost host;     
     host = (IDesignerHost)ds.GetService(typeof(IDesignerHost));
     Control view = (Control)ds.View;  // <- Exception

Reproducible: Always

Steps to Reproduce:
1.compile and run attached testcase
Actual Results:  
InvalidOperationException thwown

Expected Results:  
DesignerFrame should appear (check against MS.Net)

Haven't found System.Design in the library list, so i choosed System instead.
This happens in OpenSUSE 11.1 too.

Configure bugmail: http://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