Re: Control Properties

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: joeycalisay (hcalisay_at__spamkiller_codex-systems.com)
Date: 10/29/04


Date: Fri, 29 Oct 2004 09:09:11 +0800

Do you mean VS Form Designer only support full CLS for its codegen?

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:uQdVIrQvEHA.4028@TK2MSFTNGP15.phx.gbl...
> "C# Learner" <csharp@learner.here> schrieb:
> > class MyControl : TextBox
> > {
> > uint foo;
> >
> > public uint Foo {
> > [...]
> > When I create an instance of this control with VS.NET's form designer,
it
> > complains that 'Foo' isn't a CLS-compliant type and that it can't create
> > code that sets it.
>
> Simply do not use unsigned types, they are not CLS compliant. Instead,
use
> 'short'/'int'/'long'.
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>


Quantcast