Hello World
I have an API here that shows and hides the windows taskbar. My question is ... how can I completely hide the taskbar without a space below? Like setting it to Auto-hide the taskbar on the taskbar properties? When I run this program it seems like the taskbar's opacity=0 or invisible but still it has a little space below. Do you get what I mean?
I want to show how is it really looks like but I don't know how to insert an image here. -
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
-
Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
-
Public Const SWP_HIDEWINDOW = &H80
-
Public Const SWP_SHOWWINDOW = &H40
-
-
-
Public Sub ShowTaskBar()
-
Dim adTask As Long
-
adTask = FindWindow("Shell_traywnd", vbNullString)
-
SetWindowPos rtn, 0, 0, 0, 0, 0, SWP_SHOWWINDOW
-
End Sub
-
-
-
Public Sub HideTaskBar()
-
Dim adTask As Long
-
adTask = FindWindow("Shell_traywnd", vbNullString)
-
SetWindowPos rtn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW
-
End Sub
-
-
6 2277
Is that code working for you ?
Is that code working for you ?
Hi Debasisdas
Yes, it is working for me. Can you give me a solution to my problem?
Hello!!!
Is anyone can give me a solution on how to solve this???
HI..
First your code is working good and all is ok but you post it with error with Setwindowspos call with the Hwnd Variable. it must be "adTask" not "rtn"
Second, i was test it and no space apperar or anything like that ,i see that taskbar is fully hidden!!!
Best Regards
HI..
First your code is working good and all is ok but you post it with error with Setwindowspos call with the Hwnd Variable. it must be "adTask" not "rtn"
Second, i was test it and no space apperar or anything like that ,i see that taskbar is fully hidden!!!
Best Regards
OK. Sorry for that line. I did not double check it before posting. really there's no space below?
yes, and you know i think that if you make it like auto hide taskbar it will be with small line at bottom to help user to show it again. i think you are in the right way just test it again
Best regards
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Andrew Poulos |
last post by:
If I use this code to maximise a browser window:
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);
it works but on Windows the user can have a taskbar visible and the
browser...
|
by: kurotsuke |
last post by:
How can I hide a Form (instead of having it reduced to the taskbar)
when the minimize button is pressed in C# (there's an icon in the tray
bar)?
I added the code
protected override void...
|
by: Danielb |
last post by:
I want my application to run most of the time as just an notify icon
visible in the system tray, with some dialogs windows that open if the user
selects an option from the context menu on the tray...
|
by: Max |
last post by:
Hello,
My VB.NET application displays a Windows form in a panel
on my main form. While my application has the focus, I
want the form in the panel to have the "topmost"
position, even if it is...
|
by: Madhuri |
last post by:
I will start with an example. Suppose I have 3 applications. First is Windows application(C#). Other two applications are also windows application but in VC++ or VB. Suppose my first application is...
| |
by: UJ |
last post by:
How can I hide the task bar through code? I essentially want to change the
option to hide automatically so I can use the full screen.
TIA - Jeff.
|
by: Alex |
last post by:
Hello all,
I have a main form(say "form1") .i want to display another form(say
"form2") on occuring of an event (say a button click) and want to hide
it after some time so that it will again...
|
by: Mufasa |
last post by:
Is there a way to hide the windows taskbar. Or change the option to auto
hide it ?
Thanks.
|
by: Sh4wn |
last post by:
Hi,
first, python is one of my fav languages, and i'll definitely keep
developing with it. But, there's 1 one thing what I -really- miss:
data hiding. I know member vars are private when you...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |