Sign in to follow this  

[.net] Taskbar covers the content of maximized form

This topic is 3854 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I have created a simple form and set its WindowState to Maximized. At the very bottom I added a button (its anchor is Bottom, Left). So when I run this simple app, I can't see the button (Windows taskbar covers it). Where is the problem and how to solve that? Thanks in advance.

Share this post


Link to post
Share on other sites
So here is the form's code:



public form(bool windowed, string name)
{
InitializeComponent();
InitDevices();

this.Name = name;
this.Text = name;

this.Setstyle(Controlstyles.UserPaint, true);
this.Setstyle(Controlstyles.AllPaintingInWmPaint, true);
}



The form is loaded from the code part in Program class:


static form frm = new form(true, "Universe");

static void Main()
{
Application.EnableVisualstyles();


using (frm)
{
frm.Show();

while (frm.Created)
{
frm.Render();
Application.DoEvents();
}
}
}


Unchecking "always on top" just hides the taskbar when the form is maximized.

Share this post


Link to post
Share on other sites

This topic is 3854 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this