2

I'm trying to make my program always in top, the problem is, if I set "Topmost" to True, it automatically covers my icons bar. I tried to change the size of form and the location, but no matter what, It always cover the task bar.

Images:

With TopMost = True:

Topmost = True

With TopMost = False:

Topmost = False

I need it to perform like Topmost = True but looks like Topmost = False

Reza Aghaei
  • 120,393
  • 18
  • 203
  • 398
  • 1
    Yea, I did that `Me.Location = New Point(Screen.PrimaryScreen.Bounds.Width - GP_0.Width, Screen.PrimaryScreen.WorkingArea.Height - Me.GP_Cmds.Height - (qtd_contas * Me.Controls("GP_0").Height))`... Look at the pictures, both have this same line of code, but when I use "Topmost = True" it simply covers my taks bar. – Heitor Badotti Aug 01 '19 at 19:06
  • Wel, you're not correctly calculating the area occupied by your Form. You have a black band at the bottom side, that's what's covering the toolbar. Remove it or add it to the Form's height. – Jimi Aug 02 '19 at 15:06
  • That's true, I was using "Me.Location" but I've to use "Me.Size", I made some changes and It's working now! Thanks a lot. – Heitor Badotti Aug 03 '19 at 16:12

0 Answers0