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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
The only way I know of doing that is to set the FormBorderStyle to None and the WindowState to Maximized.
triphenAuthor Commented:
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)PresidentCommented:
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.
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

triphenAuthor Commented:
Ok thanks...I found this online to hide the taskbar, button the Start button stays....

  Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
    Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Integer, ByVal ByValhWndInsertAfter As Integer, ByVal x As Integer, ByVal y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer

    Public Const SWP_HIDEWINDOW = &H80
    Public Const SWP_SHOWWINDOW = &H40

Open in new window

    Sub ShowTaskBar()
        Dim intReturn As Integer = FindWindow("Shell_traywnd", "")
        SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
    End Sub

    Sub HideTaskBar()
        Dim intReturn As Integer = FindWindow("Shell_traywnd", "")
        SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
    End Sub

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jacques Bourgeois (James Burger)PresidentCommented:
Expand your search with VB.NET hide taskbar start button
triphenAuthor Commented:
Ya I have done that, but still I am unable to find a solution that works for vb.net VS 2010
triphenAuthor Commented:
This code worked the best and came closest to what I needed.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.