DefaultValueAttribute for objects? 
Author Message
 DefaultValueAttribute for objects?

Anyone know how to set the DefaultValue attribute for an object like a Font
object?  I tried:
[DefaultValue(new Font("Tahoma", 8))]

but this gave me an error that it must be a constant expression.  However I
know that MS does it for their controls.



Tue, 02 Mar 2004 19:20:01 GMT  
 DefaultValueAttribute for objects?
Hi Jim

Please refer the following URL for the information regarding the Font
Constructor.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgu...
ml/cpconconsumingunmanageddllfunctions.asp

Thanks,

Jacob Yang



Sat, 06 Mar 2004 13:04:16 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Incompatible DefaultValueAttribute between C# and MC++

2. XmlSerializer and DefaultValueAttribute in MC++ ?

3. PropertyGrid DefaultValueAttribute

4. PropertyGrid DefaultValueAttribute

5. Object.Equals(Object o) and Object.GEtHashCode() mehtods

6. ATL objects, with objects, with more objects

7. Casting manged object to unmanaged object

8. Object missing in Object Browser

9. Linklabel problem Object reference not set to an instance of an object

10. NullReferenceException : Object reference not set to an instance of an object

11. Object reference not set to an instance of an object

12. Object __gc* to Object __gc* __gc* ?

 

 
Powered by phpBB® Forum Software