Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9273159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:02:50+00:00 2026-06-18T16:02:50+00:00

I am using C# to give an application ‘fullscreen mode’ using borderless form and

  • 0

I am using C# to give an application ‘fullscreen mode’ using borderless form and maximise method.
This works perfectly when i am making the form borderless while it is not maximised – all you can see on the screen is the form, taskbar is covered.. However, if i maximise the form manually (user interaction), and then attempt to make it borderless & maximised, the task bar is drawn over the form (as i am not using WorkingArea, part of the controls on the form are hidden. It is the intended behaviour to NOT show the taskbar).
I tried setting the form’s property TopMost to true, but that doesn’t seem to have any effect.

Is there any way to rework this to always cover the taskbar?

if (this.FormBorderStyle != System.Windows.Forms.FormBorderStyle.None)
    {        
    this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
    }
    else
    {
        this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
    }
    if (this.WindowState != FormWindowState.Maximized)
    {
    this.WindowState = FormWindowState.Maximized;
    }
    else
    {
        if (this.FormBorderStyle == System.Windows.Forms.FormBorderStyle.Sizable)  this.WindowState=FormWindowState.Normal;
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:02:51+00:00Added an answer on June 18, 2026 at 4:02 pm

    However, if i maximise the form manually (user interaction)…

    The issue is that your window is already internally marked as being in the maximized state. So maximizing it again will not change the current size of the form. Which will leave the taskbar exposed. You’ll need to restore it first back to Normal, then back to Maximized. Yes, that flickers a bit.

        private void ToggleStateButton_Click(object sender, EventArgs e) {
            if (this.FormBorderStyle == FormBorderStyle.None) {
                this.FormBorderStyle = FormBorderStyle.Sizable;
                this.WindowState = FormWindowState.Normal;
            }
            else {
                this.FormBorderStyle = FormBorderStyle.None;
                if (this.WindowState == FormWindowState.Maximized) this.WindowState = FormWindowState.Normal;
                this.WindowState = FormWindowState.Maximized;
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please give me help regarding the random error comes within my web application using
To give more information I am using the modular form here: http://jqueryui.com/demos/dialog/#modal-form `b(e.target).zIndex` is
Can anyone give me tips how to solve this using Graphs in C or
I am using VS 2010 for develop a web application.After the 'Admin' give approval
I am using tabhost in my application. Can we give separate width property for
I'm developing a web application/game using PHP and mySQL. I need to give the
In our WPF applicaiton, we're using WindowStyle=None in order to give our application a
I have to give my windows form application to other users and We are
I'm building this small desktop application for myself, and until now I've been using
I'd like to give users of my application the ability to format plots using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.