jaimin4829 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.
do you worked on it? , do some efforts then others will help you ,
Here's something to get you started.
I found the following code here, just slightly modified by me to Not Return warnings/errors.
Public Function GetTaskbarLocation() As String
Dim bounds As Rectangle = Screen.PrimaryScreen.Bounds
Dim working As Rectangle = Screen.PrimaryScreen.WorkingArea
If working.Height < bounds.Height And working.Y > 0 Then
Return "Top"
ElseIf working.Height < bounds.Height And working.Y = 0 Then
Return "Bottom"
ElseIf working.Width < bounds.Width And working.X > 0 Then
Return "Left"
ElseIf working.Width < bounds.Width And working.X = 0 Then
Return "Right"
Else
Return Nothing
End If
End Function
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
MsgBox(GetTaskbarLocation)
End Sub
That should get you the location of the TaskBar.
.After you locate the TaskBar, just load a Form in the appropriate location of the Desktop and call it a day.
Hope this helps.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.