473,378 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

hide main windows toolbar

Hello, we want to do a form on full screen using FormBorderStyle set to
FixedToolWindow and, in the form
load, seting the FormWindowState property to Maximized and seting TopMost
equal to True but ....

how can we do that the form were over the main windows bar too???

does it possible to hide or disable it while a run the applicacion that is a
full screen form ???

thanks a lot
Nov 17 '05 #1
1 3043
You’ve got two options really, if you just want to hide the task bar, you can
simply use the following code:

[DllImport("user32.dll", EntryPoint = "SetWindowPos")]
private static extern bool SetWindowPos(IntPtr hWnd, IntPtr
hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);

[DllImport("user32.dll", SetLastError = true)]
private static extern IntPtr FindWindow(string lpClassName, string
lpWindowName);

private const int SWP_HIDEWINDOW = 0x80;
private const int SWP_SHOWWINDOW = 0x40;

private void HideTaskBar()
{
IntPtr taskBar = FindWindow("Shell_TrayWnd", "");
SetWindowPos(taskBar, IntPtr.Zero, 0, 0, 0, 0, SWP_HIDEWINDOW);
}

public void ShowTaskBar()
{
IntPtr taskBar = FindWindow("Shell_TrayWnd", "");
SetWindowPos(taskBar, IntPtr.Zero, 0, 0, 0, 0, SWP_SHOWWINDOW);
}

This however may not be enough as you say you want to have your form take
over the entire screen... to do that, set your FormBorderStyle to none and
and WindowState to maximized ala:

this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;

To accomplish the same thing, all without the need for crazy hidings.

Brendan

"FMorales" wrote:
Hello, we want to do a form on full screen using FormBorderStyle set to
FixedToolWindow and, in the form
load, seting the FormWindowState property to Maximized and seting TopMost
equal to True but ....

how can we do that the form were over the main windows bar too???

does it possible to hide or disable it while a run the applicacion that is a
full screen form ???

thanks a lot

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: jeff | last post by:
Hello, I am coding a web application to be used on an internal Intranet. I have already coded a menubar for the application using DHTML. I want to get rid of the standard menubar in Mozilla...
0
by: Mirlok | last post by:
How do I hide window from windows toolbar?
13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
5
by: Steve | last post by:
Visual Studio 2003 C# Windows: I have a tree view control as my main menu control down the left side of my application. This has 2 Parent Nodes on it (Jobs and Employees). beneath these 2 main...
0
by: FMorales | last post by:
Hello, we want to do a form on FULL SCREEN putting FormBorderStyle setting to FixedToolWindow and, in the form load, setting the FormWindowState property to Maximized and setting TopMost equal to...
3
by: Brian Mitchell | last post by:
Is there any way to make a docking and auto hide toolbar in Visual Basic.NET? Thanks!
4
by: Blaine | last post by:
Does anyone know how I can hide a form from the TaskManager? I've set the ShowInTaskbar to False, but when using Alt-TAB to switch between applications, it appears as a blank icon. I can set it...
1
by: Alfredo Barrientos | last post by:
Hi, I have a little trouble trying to assign a Toolbar control to another toolbar variable control. I am getting my forms controls with this: for (int j = 0; j <= frmChild.Controls.Count -...
4
by: Never Best | last post by:
I have an application. I want it so when the user minimizs the window it goes into the system tray, and while in the system tray I don't want it in the "Alt-Tab" list. (When the program starts it...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.