[Mono-winforms-list] Maximized don't works completely

Robert Jordan robertj at gmx.net
Sat Feb 13 14:06:24 EST 2010


On 13.02.2010 09:43, Stefano Del Furia wrote:
> HI,
> thanks for the reply.
> In other words, is there a way of get a full screen forms in Linux using
> Winforms ????

The following code works for me on a GNOME desktop!!!!! ;)

Robert

---

using System;
using System.Windows.Forms;

class Program
{
         static void Main ()
         {
                 Form form = new Form ();
                 form.ControlBox = false;
                 form.FormBorderStyle = FormBorderStyle.None;
                 form.WindowState = FormWindowState.Maximized;

                 Button button = new Button ();
                 button.Text = "Close";
                 button.Click += delegate { form.Close (); };
                 form.Controls.Add (button);

                 Application.Run (form);
         }
}


> Thanks
> Stefano
>
>
>
> -----Original Message-----
> From: "Charlie Poole"<charlie at nunit.com>
> To: "'Stefano Del Furia'"<delfo at edudotnet.it>,
> <mono-winforms-list at lists.ximian.com>
> Date: Fri, 12 Feb 2010 11:34:05 -0800
> Subject: RE: [Mono-winforms-list] Maximized don't works completely
>
>
> Hi Stefano,
>
> In Windows, Maximized is not the same as full screen. However, it can
> sometimes appear the
> same, if you have set the task bar to disappear when a form is maximized.
>
> In other words, I think you are seeing differences in both platform and user
> setup.
>
> Charlie
>
>
>
>
> From: mono-winforms-list-bounces at lists.ximian.com
> [mailto:mono-winforms-list-bounces at lists.ximian.com] On Behalf Of Stefano
> Del Furia
> Sent: Friday, February 12, 2010 7:51 AM
> To: mono-winforms-list at lists.ximian.com
> Subject: [Mono-winforms-list] Maximized don't works completely
>
>
> Hi,i'm trying to create a Kiosk application, but when i try to set a winform
> in this way
>
>              this.FormBorderStyle = FormBorderStyle.None;
>              this.WindowState = FormWindowState.Maximized;
>              this.TopMost = true;
>
> It doesn't fit all screen.
> Infact the task bar and application bar at the top and bottom of the desktop
> are still showed.
> In windows all works fine.
> Could you help me ??
> Thanks in advance
> Stefano
>
>
>
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list




More information about the Mono-winforms-list mailing list