Can I resize Form in device application
-
Dear All, I am working in Pocket PC applications using C#. I am not able to resize the form in application. At design time it show me its resized but during run it show me full size FORM. I tried at resizing it at run time via changing it's width and height But it did not helped me. I tried this on windows mobile 6.0 and 6.01 versions please help me to solve this problem Thanks you lot in advance ;) Manoj Batra
-
Dear All, I am working in Pocket PC applications using C#. I am not able to resize the form in application. At design time it show me its resized but during run it show me full size FORM. I tried at resizing it at run time via changing it's width and height But it did not helped me. I tried this on windows mobile 6.0 and 6.01 versions please help me to solve this problem Thanks you lot in advance ;) Manoj Batra
Pocket PC is designed to only have full-screen forms. You cannot create a form that is not full screen. Windows CE creates top-level (non-popup) windows full-screen. Popup windows can be any size you want. However, the standard for Pocket PC says that you should size your popup dialogs to the full size of the screen using
SHInitDialog
and callingSHHandleWMActivate
andSHHandleWMSettingChange
in response to the corresponding messages. Microsoft's development frameworks, first MFC and ATL and now .NET Compact Framework all do this for you. To the best of my recollection, .NET Compact Framework does not offer any way to override this.DoEvents: Generating unexpected recursion since 1991
-
Pocket PC is designed to only have full-screen forms. You cannot create a form that is not full screen. Windows CE creates top-level (non-popup) windows full-screen. Popup windows can be any size you want. However, the standard for Pocket PC says that you should size your popup dialogs to the full size of the screen using
SHInitDialog
and callingSHHandleWMActivate
andSHHandleWMSettingChange
in response to the corresponding messages. Microsoft's development frameworks, first MFC and ATL and now .NET Compact Framework all do this for you. To the best of my recollection, .NET Compact Framework does not offer any way to override this.DoEvents: Generating unexpected recursion since 1991
Hi,
Mike Dimmick wrote:
To the best of my recollection, .NET Compact Framework does not offer any way to override this.
It is possible. The "trick" is to set the FormBorderStyle property to None. For example see my blog entry titled "Creating non full screen forms and custom MessageBoxes" available at http://www.christec.co.nz/blog/archives/134[^]. However having said that it's best described as a hack, and there are some issues with my code sample on different versions of the Windows Mobile OS etc. Since I don't really want to encourage people to develop these kinds of user interfaces I'm not inclined to investigate/resolve these issues... Hope this helps, Christopher Fairbairn Windows Mobile Development blog http://www.christec.co.nz/blog/
-
Dear All, I am working in Pocket PC applications using C#. I am not able to resize the form in application. At design time it show me its resized but during run it show me full size FORM. I tried at resizing it at run time via changing it's width and height But it did not helped me. I tried this on windows mobile 6.0 and 6.01 versions please help me to solve this problem Thanks you lot in advance ;) Manoj Batra
Hi Guy Yes this very easy man just pass your height and with when is for will be load time.but currentlly i dont have code. but i seee here ,download exe from the this link and install, after open the code see there a method called ReSizeForm() http://msdn2.microsoft.com/en-gb/library/aa446486.aspx[^] I think ur porbs solved. Thanks
Cheers RRave MCTS,MCPD