473,761 Members | 8,813 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3123
You’ve got two options really, if you just want to hide the task bar, you can
simply use the following code:

[DllImport("user 32.dll", EntryPoint = "SetWindowP os")]
private static extern bool SetWindowPos(In tPtr hWnd, IntPtr
hWndInsertAfter , int X, int Y, int cx, int cy, uint uFlags);

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

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

private void HideTaskBar()
{
IntPtr taskBar = FindWindow("She ll_TrayWnd", "");
SetWindowPos(ta skBar, IntPtr.Zero, 0, 0, 0, 0, SWP_HIDEWINDOW) ;
}

public void ShowTaskBar()
{
IntPtr taskBar = FindWindow("She ll_TrayWnd", "");
SetWindowPos(ta skBar, 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.FormBorder Style = FormBorderStyle .None;
this.WindowStat e = 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
8548
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 to: a) Stop people getting confused with 2 menubars b) Free up a bit of more screen space
0
1298
by: Mirlok | last post by:
How do I hide window from windows toolbar?
13
74132
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 Form1.Visible = False Load (Form1)
5
4511
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 functions I have 2 sub functions under each("Add Job", "View Jobs" and "Add User", "View Users"). I have theses subfunctions grouped in a TabControl, so there are 2 TabControl objects on my main screen, each with 2 pages on. When the user...
0
291
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 True but .... how can we do if we want that the form were over the main windows bar too??? does it possible to hide or disable the main windows toolbar while I run the applicacion that is a full screen form ???
3
2989
by: Brian Mitchell | last post by:
Is there any way to make a docking and auto hide toolbar in Visual Basic.NET? Thanks!
4
4391
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 as a SizableToolWindow, but then I no longer have the minimize button on the caption. Is there a way to mimic a (FormBorder) sizable tool window (so it doesn't appear in the tasklist) and still show the Min, Max and Close control buttons? (Or...
1
3476
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 - 1; j++) { // Some operations
4
13189
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 starts in the system tray aswell; only shows main window if they double click). Currently to achive this when the user minimizes I have to set "ShowInTaskbar - false" "ControlBox - false" "Size - 0,0" "Text - null" "FormBorderStyle -...
0
10781
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 inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9811
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7358
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.