Hi, I would like to set the default value of a property on my control by:
[System.ComponentModel.DefaultValue( typeof(Color),
SystemColors.WindowText.ToString() )]
but can't because SystemColors.WindowText is not a constant. Microsoft
controls do it, can I - is there a work round?
I can cheat by...
[System.ComponentModel.DefaultValue(typeof(Color), "Black")]
but its not quite what I want. Plus: if I use the cheat("Black") would this
have any problems with internationalisation - would the control work on a
german,french,etc.. machine.
Thanks in advance.
Steve.