Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Can I resize Form in device application

Can I resize Form in device application

Scheduled Pinned Locked Moved Mobile
helpcsharpdesign
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MANOJ BATRA
    wrote on last edited by
    #1

    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

    M R 2 Replies Last reply
    0
    • M 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

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      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 calling SHHandleWMActivate and SHHandleWMSettingChange 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

      C 1 Reply Last reply
      0
      • M Mike Dimmick

        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 calling SHHandleWMActivate and SHHandleWMSettingChange 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

        C Offline
        C Offline
        Christopher Fairbairn
        wrote on last edited by
        #3

        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/

        1 Reply Last reply
        0
        • M 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

          R Offline
          R Offline
          Ravenet
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups