SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Cannot add TestStand controls to Forms Designer

Last post 11-07-2006 7:21 PM by Billtr. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-07-2006 5:16 PM

    • Billtr
    • Not Ranked
    • Joined on 11-07-2006
    • Posts 2

    Cannot add TestStand controls to Forms Designer

    The exception below thrown. How do we get fonts into GraphicsUnit.Point, how do we know what fonts to add?

    Thanks,

    Bill

    .NET Version        : 2.0.50727.42
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 2
    Current culture      : English (United States) (en-US)
    Working Set Memory   : 84908kb
    SharpDevelop Version : 2.0.0.1710

    Exception thrown:
    System.ArgumentException: ActiveX controls only accept fonts that are defined in GraphicsUnit.Point.
    Parameter name: font
       at System.Windows.Forms.AxHost.GetIFontFromFont(Font font)
       at System.Windows.Forms.AxHost.QuickActivate()
       at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
       at System.Windows.Forms.AxHost.CreateHandle()
       at System.Windows.Forms.Control.get_Handle()
       at System.Windows.Forms.Design.DesignerFrame.OnGotFocus(EventArgs e)
       at System.Windows.Forms.Control.WmSetFocus(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Design.DesignerFrame.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Design.PbrsForward.System.Windows.Forms.IWindowTarget.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

  • 11-07-2006 6:32 PM In reply to

    Re: Cannot add TestStand controls to Forms Designer

    Try changing the form's Font.Unit property to Point.
  • 11-07-2006 7:21 PM In reply to

    • Billtr
    • Not Ranked
    • Joined on 11-07-2006
    • Posts 2

    Re: Cannot add TestStand controls to Forms Designer

    That's the ticket. Thanks, Matt!
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.