DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 13 Jul 2007 10:29:11 -0000,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Buju


Design-Time Attribute for a Font Array in Visual Studio 2005   
Hi,

I have a custom Button control, whick contains a Font[] Array-
Property. This control is for .NET CF 1.x, so I have add a Design-Time
Attribute to the .xmta File for a Visual Studio 2005 Designer support.

public Font [] Fonts
{
  get
  {
    return myFonts;
  }
  set
  {
    myFonts = value;
  }
}

 When I want to add a font in the designer using the standard VS2005
Font Collection Editor, I get an error: "Constructor on type
'System.Drawing.Font' not found."

It's obvious that the Font class doesn't have a standard constructor.
So how can I tell VS2005 not to use the standard constructor from Font
class? Instead of the standard constructor VS2005 should use something
like that:

public Font ( string familyName, float emSize, FontStyle style)

thx in advice,

Lin
Date:Fri, 13 Jul 2007 10:29:11 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us