Wiki Link: [discussion:72126]
SmartClientApplication resized only by dragging bottom-right corner  

Tags: CAB & Smart Client Software Factory

Oct 15 2009 at 7:14 PM
Edited Oct 15 2009 at 7:17 PM
Hello,

I follow the instruction for smart client software factory to generate my ShellApplication class and etc.
.
     class ShellApplication : SmartClientApplication<WorkItem, ShellForm>

When it runs, I find that the main window, which comes from the ShellForm class, can only be resized like a Mac Window. That is, it can only be resized from the bottom right corner. You cannot resize it by dragging the border lines as you would do to a normal Microsoft window.

Why? Is this by design of smart client software factory? I do not find any place where I have changed or manipulated that sort of behavior.

How can I change this Mac behavior to Microsoft behavior?

Thanks,
Quick   


Developer
Oct 15 2009 at 9:12 PM

Hi Quick,

The SCSF does not provide any specific functionality that should make this happen. One reason why this could be happening is if your Shell form has its AutoSizeMode property set to GrowAndShrink. If this is the case, changing it to GrowOnly should solve your problem. You should also make sure that the AutoSize property is set to False. You can read more about this in this MSDN forum thread.

Please let me know if this helps.

Damian Schenkelman
http://blogs.southworks.net/dschenkelman


Updating...
© 2006-2010 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2010.1.12.16187