Permanently staying over the taskbar

03-25-2006, 04:46 PM
Hi! I'm writing a small program that uses Google's calculator function. It's basically a small textbox that hovers just below the start button (I use a two-line taskbar) and accepts input, then makes a request on Google and returns the result in the same textbox.

So far, I'm doing well on my own, but I have a small problem. Setting the form to TopMost works fine, but if I click on the taskbar at all, the taskbar overlaps the form. Is there any way to force it to stay on top of the taskbar at all times or possibly integrate it with the taskbar somehow?


03-25-2006, 05:09 PM
... And not fifteen minutes after I post, I find the solution. In case anyone else is curious:

Private Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As Integer) As Integer
Private Sub tmrOnTop_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrOnTop.Tick
End Sub

It's dirty and it constantly shows the cursor in the textbox, but it works.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum