Link to home
Start Free TrialLog in
Avatar of Svgmassive
Svgmassive

asked on

Programmatically change the windows 10 taskbar height

i would like to programmatically change the taskbar height using VBA. Thanks
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Can you give a hint why you want that..
Avatar of Svgmassive
Svgmassive

ASKER

For some reason the taskbar height doubles.So before deploying  the program i want to be able to reset it to it's original height in the event that the height doubles,
Can you give a screenshot of the issue...also have you tried and click and drag ...or this happens when the application runs.
Svg:  I know what you're talking about.  The Task Bar is a Windows thing, not an Access thing.  You're going to need Windows API help for this, or something that you can manipulate with VBA.  Try googling on:

"changing the height of the windows taskbar with VBA"
ASKER CERTIFIED SOLUTION
Avatar of Mark Edwards
Mark Edwards
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
p.s.  Here's a tip Svg:  This could get relatively complicated.  Make sure that any code solution has been compiled and tested by the contributor before you try to use it.  Otherwise you could spend the next week or so trying to fix it so it works.

I'll be working on a tested code solution in the meantime....
A better question is: Why would any program you write mess with the settings on a users desktop, unless it's a program designed to customize that desktop (and then I'd ask why you're doing this in Access)? I most definitely would NOT like it if I install your program and find that it mucks with my taskbar, desktop, tiles, etc.
Hey Svg:  What version of Windows is involved here....
ok.  Here's what I've found out so far.  You can't programmatically change the taskbar height.  It is strictly the realm of the user preference.  Any attempt to change it, even after successfully getting its window handle (hWnd = FindWindowA("Shell_traywnd", ""), its rectangle positions, and trying to change the top and height of it using the Win API MoveWindow(), it won't budge, even if it is not locked.

However, the windows Desktop is another matter.  It is easy to manipulate that and it responds to changes in the taskbar size.  You can get the screen size and Desktop top, bottom, left, and right screen positions and resize any application windows that are on the Desktop to fit that you want to.

Hope this helps, but that's all I can contribute on this.