hog Posted July 26, 2005 Posted July 26, 2005 Is it possible to turn off, hide the taskbar during runtime? I want my picture to take up the entire screen but cant find out where to turn it off? Thnx Quote My website
rot13 Posted July 26, 2005 Posted July 26, 2005 It is possible to take up the entire screen with a form... All you have to do is set FormBorderStyle = FormBorderStyles.None, and WindowState = WindowStates.Maximized... I assume your wanting a form with a picture to take up the entire screen? This is the easiest way to do it, but people can push their windows logo button and the start menu will pop up and mess up your app and stuff like that... so if that's a problem, then I'm sure theres an API to do something like your wanting... Quote
hog Posted July 26, 2005 Author Posted July 26, 2005 Hi, setting the for to maximized still shows the taskbar at the bottom. I am trying to replicate the WindowsXP slide show program which will cycle through all the photos in a folder full screen, no taskbar. If the user chooses to press the Windows key to display the taskbar then that is OK. I just want to hide the taskbar until the uses chooses to show it or reduce my app to normal size. Quote My website
Shurikn Posted July 26, 2005 Posted July 26, 2005 Hi, setting the for to maximized still shows the taskbar at the bottom. I am trying to replicate the WindowsXP slide show program which will cycle through all the photos in a folder full screen, no taskbar. If the user chooses to press the Windows key to display the taskbar then that is OK. I just want to hide the taskbar until the uses chooses to show it or reduce my app to normal size. set your form size to the resolution of the screen (while having borderstyle=none) Quote
rot13 Posted July 26, 2005 Posted July 26, 2005 Hi, setting the for to maximized still shows the taskbar at the bottom. I am trying to replicate the WindowsXP slide show program which will cycle through all the photos in a folder full screen, no taskbar. If the user chooses to press the Windows key to display the taskbar then that is OK. I just want to hide the taskbar until the uses chooses to show it or reduce my app to normal size. You have to set FormBorderStyle to FormBorderStyles.None, along with Maximized... that fills it full screen for me... no taskbar Quote
Wile Posted July 26, 2005 Posted July 26, 2005 You can also set the TopMost property of a form to true. It ensures the form will be displayed over the taskbar and any other window (except other windows that are also 'topmost', like the taskmanager) Quote Nothing is as illusive as 'the last bug'.
Machaira Posted July 26, 2005 Posted July 26, 2005 If you want to hide the taskbar this will do it: Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr Private Declare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hWnd As IntPtr, ByVal cmdShow As Boolean) As Boolean Private Const SW_HIDE = 0 Private Const SW_SHOW = 1 Private hTaskBar As IntPtr Public Sub Main() hTaskBar = FindWindow("Shell_TrayWnd", "") ShowWindow(hTaskBar, SW_HIDE) ShowWindow(hTaskBar, SW_SHOW) End Sub Quote Here's what I'm up to.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.