Jump to content
  • Advertisement
Sign in to follow this  
Montynis

[.net] Taskbar covers the content of maximized form

This topic is 4135 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
Advertisement
I tried to recreate this with the WindowState property set at design time and run time and can't get this to happen. Can you paste all of the form's code?

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!