Avatar of triphen
triphen
 asked on

vb.net TopMost Windows Taskbar

Hello Experts,

There is an application that is written in Delphi that is full screen and it is set to be the topmost window. I dont have any control over this application. I wrote an application in vb.net and in the form load event I put "me.topmost = true". This works very well for keeping my vb.net application on top of the Delphi application at all times. The problem is that when the vb.net application has focus, the Windows taskbar is also viable. When the Delphi application has focus, the vb.net is still top most window and the taskbar is not visible.

What I want is for the vb.net to be in focus and be on top and for the Windows taskbar not to be visible. Is this possible?
Visual Basic.NET

Avatar of undefined
Last Comment
triphen

8/22/2022 - Mon
Jacques Bourgeois (James Burger)

The only way I know of doing that is to set the FormBorderStyle to None and the WindowState to Maximized.
triphen

ASKER
The problem is I dont want my vb.net app maximized. It only takes up 100 x 200 pixels. I just want it to be on top of the other full screen on top window without showing the taskbar...
Jacques Bourgeois (James Burger)

If you mean that you do not want your application from showing in the taskbar, then simply set the ShowInTaskBar property of the Form to False.

Otherwise, unless you are doing something very special, there is a reason why Microsoft designed the Form as it did. Hiding the taskbar prevents the user from interacting as he sees fit with other applications. They also make sure that an application won't hide the taskbar and they close before unhiding it, preventing the user from moving from one opened application to another in the most common and easiest way to do so.

If you really want to hide the taskbar anyway, a simple search for "VB.NET hide taskbar" will give you the code to do it. Just be sure to unhide it when your application closes or if it crashes.
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
triphen

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jacques Bourgeois (James Burger)

Expand your search with VB.NET hide taskbar start button
triphen

ASKER
Ya I have done that, but still I am unable to find a solution that works for vb.net VS 2010
triphen

ASKER
This code worked the best and came closest to what I needed.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.