That won't work. You need to define the library to use when you drop the object on the form or subclass it, not when you compile.
>Hi,
>
>Here is an example. I have a project that has two class libraries of exact same name (e.g. MYLIB.VCX). Each library reside in a separate folder (MYLIB1 and MYLIB2). Can I use a #DEFINE or something of that sort to set a condition so that when I build an EXE only one of the libraries (matching conditional choice) is included in the EXE file?
>
>Thank you in advance for any suggestions.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer