Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

My website
Posted

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...

Posted

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.

My website
Posted
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)

Posted
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

Posted
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)
Nothing is as illusive as 'the last bug'.
Posted

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

Here's what I'm up to.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...