Banner

Form con sfondo colorato e sfumato

Per chi volesse una form con sfondo colorato e sfumato...

Form con sfondo colorato e sfumato

Imports System.Drawing.Drawing2D

Public Class Form1

    Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) _
    Handles MyBase.Paint

        Dim colore1 As Color = Color.OrangeRed
        Dim colore2 As Color = Color.Yellow

        Dim gradient_brush As New LinearGradientBrush(New Point(0, 0), New Point(Me.Width, 0), colore1, colore2)

        e.Graphics.FillRectangle(gradient_brush, 0, 0, Me.Width, Me.Height)

    End Sub

    Private Sub Form1_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SizeChanged

        Me.Invalidate()

    End Sub

End Class
Siti Ufficiali Editor Free Guide Online Utility
Microsoft Visual Studio MSDN InnoSetup
Apple XCode Documentazione .Net Cyber Installer
Oracle NetBeans Apple Developer NSIS
Debian Eclipse W3C Diagram Online
Distrowatch Bluefish W3C Validator Junior Icon Editor
Brackets W3Schools Edit Cursors Online
TextWrangler

Sito realizzato da Fiaschi Francesco - Aggiornamento Dicembre 2018

W3C - XHTML 1.1 Validated