473,503 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remove Task bar Windows

Hi,
In my windows form application I want the form to appear maximized while
running Even hide the task bar.Normal form size maximized displays the task
bar.
Later after the form closes the task bar should come back
need some help on this

thanks in advance
Manoj
Nov 16 '05 #1
1 2415
Hi,

Did some reserch on my own and go this

...................A rough class which hides the task bar.................

using System.Runtime.InteropServices;

[DllImport("user32")]

static extern bool ShowWindow(IntPtr hwnd, int nCmdShow);
[DllImport("user32")]

static extern IntPtr FindWindow(string lpclassName, string lpWindowName);

[DllImport("user32")]

static extern IntPtr FindWindowEx(IntPtr hwnd1,IntPtr hwnd2,string
lpsz1,string lpsz2);

public void TaskBarAction(int show)

{

IntPtr lngHandle = FindWindow("Shell_TrayWnd","");

switch(show)

{

case 0:

ShowWindow(lngHandle,5);

break;

case 1:

ShowWindow(lngHandle,0);

break;

}

}

regards

Manoj

......

"Manoj Nair" <mn*********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
Hi,
In my windows form application I want the form to appear maximized while
running Even hide the task bar.Normal form size maximized displays the task bar.
Later after the form closes the task bar should come back
need some help on this

thanks in advance
Manoj

Nov 16 '05 #2

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

Similar topics

2
7937
by: Claudio Jolowicz | last post by:
How can XSLT stylesheets be used to edit, remove and add nodes specified by their position in the document tree? The XML document stores development tasks in a hierarchical way, i.e. tasks can...
4
2266
by: Christina | last post by:
Dear All, How can I pop up the windows task scheduler inside of my .net application? Such as I have a button called Schedule Now, after clicking it, the Add Scheduled Task window will pop up,...
1
2610
by: ODB | last post by:
Hi I have a small application with a notifying icon, in the task bar, i have removed the normal icon from the taskbar, but now i need to remove the Alt- Tab menu icon, can you tell me what...
2
7679
by: masterra | last post by:
Hello all! I am trying to create a replacement task bar for windows (don't ask why..) in C#, and have run into some troubles. I am aware that i can get a list of running processes (using...
6
9631
by: Francois Bonzon | last post by:
Any idea how I can launch a background task from a PHP script? For example, when a user posts on my message board, it may fire many e-mail notifications to other users, and other tasks. I want...
6
693
by: fzhang | last post by:
I am relatively new to XML and C#. So, forgive me if this question is too newbie. :-) While assuming this is an easy programming task, I couldn't find a single reference anywhere for how to do...
0
1028
by: Phoe6 | last post by:
Hi all, I have to uninstall an application and I don't find the uninstaller, the option available to me is to access Add/Remove Programs, select the application and remove from there. I am...
3
2223
by: mayur_hirpara | last post by:
Hi, I am writing a VB.NET application. It is a Windows application at the moment. The application contains a button. the click event of button perform a long running task. It needs to be started...
2
2109
by: Gary Brown | last post by:
Hi, How do you remove an icon from the task switcher menu? (The one you get with ALT-TAB.) I think I asked this before but never got an answer. Now I have another app that shows an icon for...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7280
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,...
0
7332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7462
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...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
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...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.