Click here to Skip to main content
13,142,065 members (60,833 online)
Rate this:
Please Sign up or sign in to vote.
I am developing a simple software application in
there i kept form property - windowstate as maximized
but then it is hiding my taskbar and i dont want that.
I want the form to be shown above the task bar in full size.
i.e. it should not hide my task bar. How to do it.
Posted 7-Nov-11 5:34am
Updated 7-Nov-11 5:58am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You probably have your taskbar set to "hidden" until you mouse-over it. When you mouse-over it, it is displayed on top of the maximized application without changing the application's size at the same time. That's a bug in Windows as far as I'm concerned - NOT your application.
snehalagrawal 7-Nov-11 11:42am
But then in another similar software application (i took it from someone) it is not hiding my taskbar. and i found similar properties for both the projects. Dont know how they r achieving it... ? :(
snehalagrawal 7-Nov-11 11:49am
Between i checked it, it is not so... my taskbar is not set to "hidden".
and as i said above another program working fine on the same system...
LanFanNinja 7-Nov-11 13:56pm
WindowState = FormWindowState.Maximized works fine for me on Windows 7 I cannot imagine what could be wrong?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

If you Set Form's Border Property to None and Forms WindowState to Maximized then Taskbar Will be Hidden....
Here's a Solution Try and Comment your Experience

If you Need Taskbar and No Border to Your Form Just Change WindowsState to Normal and use This Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.Top = 0
    Me.Left = 0
    Me.Height = Screen.PrimaryScreen.WorkingArea.Height
    Me.Width = Screen.PrimaryScreen.WorkingArea.Width
End Sub

Happy Coding......
snehalagrawal 11-Nov-11 12:34pm
Yes... :) this code is working... :)
Thanks a tonne...!
But in the other project i have as said above they have not done this coding,
still their program working fine (as does not hides task bar)... :(
How come...? Que still on my mind...!!!
Ashok19r91d 11-Nov-11 12:51pm
Please Let me Know About Your Form...
Check and Comment Forms Following Properties in Both Projects
Forms's BorderStyle, WindowState, StartupPosition, Height and Width...

I'll Try to explain how manage that...

I Think They Set All Above Properties in Design Time
But Know that Using Above Code Helps to Display Taskbar (whatever it's Height) and Whatever the Screen Resolution, But Setting These Values in Design time will not Serves Above said Properties...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 9 Nov 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100