Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows VB.NET form
I am developing a simple software application in vb.net.
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 6:34am
Edited 7-Nov-11 6:58am
v2
Rate this: bad
good
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.
  Permalink  
Comments
snehalagrawal at 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 at 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 at 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
good
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......
  Permalink  
v3
Comments
snehalagrawal at 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 at 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
0 OriginalGriff 6,569
1 Sergey Alexandrovich Kryukov 6,168
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 9 Nov 2011
Copyright © CodeProject, 1999-2014
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