[Mono-list] Windows.Forms control flicker and wrapper classes.

Paolo Molaro lupus at ximian.com
Tue Dec 5 12:46:38 EST 2006


On 12/01/06 Bouk, Nathan wrote:
> It's more an issue of managing compiling and changing the type name from
> TreeView to TreeViewWithPaint depending on the system. Under C/C++ I
> could probably use a preprocessor #ifdef _WIN32 to deal with it, but how
> do I deal with that under .NET/Mono?

You should do this with a runtime check, not with a preprocessor, so
that your code will run unchanged on both platforms.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better


More information about the Mono-list mailing list