how to minimize the form?

how to minimize the form.

and develop platform is c# .net cf



Answer this question

how to minimize the form?

  • nazura

    Try this:

    Form1.Visible = false;
    Form1.Refresh();

    There is an intellisense feature. After you type the dot a list of available fields and methods should appear. Look for the one that matches the best to what you are looking for. Also everything is case sensitive so watch out for that.



  • DisavoweD

    Are you just trying to make the form disappear If so:

    form.Visible = false;
    form.Refresh();

    will make it go away



  • ks06

    hi JR

    Maybe the form clase does not has visible Property in .net cf 2.0

    Is it right

    Thank you


  • Binary

    hi JR

    The form1 is a form class

    The develop platform is C# .net cf 2.0

    How to do that.

    Thank you


  • Mio

    hi JR

    my code is below:

    Form1.visible = false;
    Form1.refresh();

    but it can not pass build.

    The notify is the form1 does not own the visible and refresh();

    Why

    Thank you


  • Alexander Albornoz

    Well I have used the Visible poperty, I am pretty sure it's there. I looked up the Form page on msdn for you:

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformsformclasstopic.asp

    and here is the Visible property for all C# controls:

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassvisibletopic.asp

    These have been supported since CF 1.0. This just seems really weird. Are you making these calls inside a method which is in a class Maybe you could post your entire class I would be a big help to see exactly what's going on.



  • EltonSky

    Pretty much the same as normal WinForms, but you'll get slightly different results depending on the OS platform. Check out this link for some more information: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/netcfPPCtoCE.asp

  • Pipe2Path

    hi Rob

    Thank for your link.

    it tell that

    .NET Compact Framework-based applications running on the Pocket PC use the main Form's MinimizeBox property to control their "smart minimize" behavior. When MinimizeBox is set to true (the default), the application places an "X" button on the top of the form, as shown in Figure 1. Tapping the "X" "smart minimizes" the application.

    But which .net cf api can make the form minimizes

    Thank you again.


  • Maik Wiege

    hi JR

    I have tried

    Form1.Visible = false;
    Form1.Refresh();

    when I type Form1 dot , in the list of the Form1, there are no Visible

    and Refresh() appeared.

    Why

    Thank you


  • LeahC

    What kind of class if the variable Form1. Is it a Form class

  • how to minimize the form?