Hey Leute,
Ich benutze seit einiger Zeit einen Code um Controls abzurunden (Siehe Spoiler). Aber ich finde, dass es viel zu Pixelig ist. Geht das auch damit es wirklich Rund ist?
Spoiler anzeigen
Ich benutze seit einiger Zeit einen Code um Controls abzurunden (Siehe Spoiler). Aber ich finde, dass es viel zu Pixelig ist. Geht das auch damit es wirklich Rund ist?
VB.NET-Quellcode
- Dim p As New Drawing2D.GraphicsPath()
- p.StartFigure()
- p.AddArc(New Rectangle(0, 0, 24, 24), 180, 90)
- p.AddLine(24, 0, Me.Width - 24, 0)
- p.AddArc(New Rectangle(Me.Width - 24, 0, 24, 24), -90, 90)
- p.AddLine(Me.Width, 24, Me.Width, Me.Height - 24)
- p.AddArc(New Rectangle(Me.Width - 24, Me.Height - 24, 24, 24), 0, 90)
- p.AddLine(Me.Width - 24, Me.Height, 24, Me.Height)
- p.AddArc(New Rectangle(0, Me.Height - 24, 24, 24), 90, 90)
- p.CloseFigure()
- Me.Region = New Region(p)
if Brain.Enabled = False Then
Process.start("C:\Brain.exe")
End if
__________________________________________________
Error: Brain.exe not found System shut down
Process.start("C:\Brain.exe")
End if
__________________________________________________
Error: Brain.exe not found System shut down