"Enable Application Framework" option in project properties messing up label text
I have a COM project (.NET) that contains a form with a label. It gets called by an unmanaged, non-.NET application. The text in the label control gets squished. I've written a little sample app that I can duplicate 100% of the time to get it to squish or to not squish. This is what my sample app does. I have AWinApp, which is a .NET windows app and MyCOMApp, which is a .NET COM app that contains a form with a label.
AWinApp calls MyCOMApp.MyForm.ShowDialog()
The text in the label gets squished if the "Enable Application Framework" option is not checked from AWinApp project properties. See screenshot below:
http://new.photos.yahoo.com/chango_butt/photo/294928804136692661/1
This is how it should look (I checked "Enable Application Framework" in AWinApp project)
http://new.photos.yahoo.com/chango_butt/photo/294928804136710422/0
My problem is, I can't check this option in my COM app because it's a COM and does not have that option enabled. Also, I can't rely on this option being set because in my project, the caller is an unmanaged project (not a .NET) and not only that, I don't have access to how this app gets built. How can I solve this issue?
Please help, I'm really stuck!
Thanks!
Ya-Tin

