Re: Maximized don't works completely

Robert Jordan <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
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"<[email protected]>
> To: "'Stefano Del Furia'"<[email protected]>,
> <[email protected]>
> 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: [email protected]
> [mailto:[email protected]] On Behalf Of Stefano
> Del Furia
> Sent: Friday, February 12, 2010 7:51 AM
> To: [email protected]
> 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  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list


_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.