Moin Leute!
Ich habe im Netz dieses Snippet gefunden, womit sich die Tasbarposition herausfinden lässt.
Spoiler anzeigen
Hat jemand von euch eine Idee wie sich das ganze umsätzen lässt, damit ich die Taskbarposition auf dem Desktop ändern kann? (Top,Bottom,Left,Right)
Mir fehlt leider jeglicher Ansatz.
Ich habe im Netz dieses Snippet gefunden, womit sich die Tasbarposition herausfinden lässt.
VB.NET-Quellcode
- Public Enum _Location
- Top
- Bottom
- Left
- Right
- End Enum
- Public Function GetTaskbarLocation() As _Location
- 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 _Location.Top
- ElseIf working.Height < bounds.Height And working.Y = 0 Then
- Return _Location.Bottom
- ElseIf working.Width < bounds.Width And working.X > 0 Then
- Return _Location.Left
- ElseIf working.Width < bounds.Width And working.X = 0 Then
- Return _Location.Right
- Else
- Return Nothing
- End If
- End Function
Hat jemand von euch eine Idee wie sich das ganze umsätzen lässt, damit ich die Taskbarposition auf dem Desktop ändern kann? (Top,Bottom,Left,Right)
Mir fehlt leider jeglicher Ansatz.