GUI Collection

Es gibt 5 Antworten in diesem Thema. Der letzte Beitrag () ist von Gather.

    GUI Collection

    Hi.

    Hier möchte ich regelmäßig Formdesings reinstellen, und mit Vorlage.

    Tutorial:

    1. Ladet euch ein Design runter
    2. Stellt bei eurer Form "FormBorderStyle" auf "None"
    3. Sucht bei "BackgroundImage" das Design aus
    3. Stellt "BackgroundImageLayout" auf "Stretch"

    Erstellt nun ein Close und Minimize Label und einen Formtext wie in den Beispielen.

    Nun braucht ihr eine Picturebox und das Textlabel, was den Standandartformtext ersetzt.

    Geht in den Code und schreibt folgendes hinein:



    VB.NET-Quellcode

    1. Dim nStartPos As Point
    2. Dim nDragPos As Point
    3. Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
    4. If e.Button = Windows.Forms.MouseButtons.Left Then
    5. nStartPos = Me.Location
    6. nDragPos = Me.PointToScreen(New Point(e.X, e.Y))
    7. End If
    8. End Sub
    9. Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
    10. If e.Button = Windows.Forms.MouseButtons.Left Then
    11. Dim nCurPos As Point = Me.PointToScreen(New Point(e.X, e.Y))
    12. Me.Location = New Point(nStartPos.X + nCurPos.X - nDragPos.X, _
    13. nStartPos.Y + nCurPos.Y - nDragPos.Y)
    14. End If
    15. End Sub
    16. Private Sub Label1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseDown
    17. If e.Button = Windows.Forms.MouseButtons.Left Then
    18. nStartPos = Me.Location
    19. nDragPos = Me.PointToScreen(New Point(e.X, e.Y))
    20. End If
    21. End Sub
    22. Private Sub Label1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseMove
    23. If e.Button = Windows.Forms.MouseButtons.Left Then
    24. Dim nCurPos As Point = Me.PointToScreen(New Point(e.X, e.Y))
    25. Me.Location = New Point(nStartPos.X + nCurPos.X - nDragPos.X, _
    26. nStartPos.Y + nCurPos.Y - nDragPos.Y)
    27. End If
    28. End Sub


    Wenn eure Picturebox und das Label anders heisst - anpassen.

    Nun könnt ihr eure Form schonmal verschieben.

    Nun die Designs!




    1. Abstract Black 1


    Beispiel:


    2. Abstract Black 2


    Beispiel:


    3. Blue 1


    Beispiel:


    4. Blue 2


    Beispiel:


    5. Lila 1


    Beispiel:


    Ich bemühe mich reglmäßig weitere zu machen.
    Vielleicht kann ja jemand was damit anfangen.

    Mfg. TGS


    Designs im Anhang!
    Bilder
    • BlackAbstract1.png

      86,58 kB, 400×250, 63 mal angesehen
    • Lila1.png

      322,73 kB, 513×512, 65 mal angesehen
    • BlackAbstract2.jpg

      44,48 kB, 593×445, 66 mal angesehen
    • Blau1.jpg

      12,91 kB, 454×255, 60 mal angesehen
    • Blau2.jpg

      220,45 kB, 1.280×1.024, 71 mal angesehen
    stimme ich zu, wenn schon eine GUI sammlung dann aber bitte Programmiert, heißt GDI+ etc.
    Mfg: Gather
    Private Nachrichten bezüglich VB-Fragen werden Ignoriert!