Click here to Skip to main content
15,892,199 members
Articles / Multimedia / GDI

MBGlassPanel Using VB.NET 2008

Rate me:
Please Sign up or sign in to vote.
3.75/5 (7 votes)
9 Jul 2012CPOL 27.2K   2.1K   13  
MBGlassPanel with Microsoft Office Ribbon Visual Style
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form1))
        Me.Panel1 = New System.Windows.Forms.Panel
        Me.Label1 = New System.Windows.Forms.Label
        Me.Label2 = New System.Windows.Forms.Label
        Me.MbPanel3 = New MBPanel
        Me.MbPanel2 = New MBPanel
        Me.MbPanel1 = New MBPanel
        Me.SuspendLayout()
        '
        'Panel1
        '
        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.Panel1.Location = New System.Drawing.Point(12, 12)
        Me.Panel1.Name = "Panel1"
        Me.Panel1.Size = New System.Drawing.Size(115, 206)
        Me.Panel1.TabIndex = 0
        '
        'Label1
        '
        Me.Label1.AutoSize = True
        Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label1.Location = New System.Drawing.Point(30, 231)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(81, 15)
        Me.Label1.TabIndex = 2
        Me.Label1.Text = "Simple Panel"
        '
        'Label2
        '
        Me.Label2.AutoSize = True
        Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label2.Location = New System.Drawing.Point(220, 231)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(153, 15)
        Me.Label2.TabIndex = 3
        Me.Label2.Text = "MB Panel with Glass Effect"
        '
        'MbPanel3
        '
        Me.MbPanel3.BackColor = System.Drawing.Color.White
        Me.MbPanel3.BorderStyle = MBPanel.MBBorderStyle.None
        Me.MbPanel3.GlassColor = System.Drawing.Color.Black
        Me.MbPanel3.Location = New System.Drawing.Point(147, 118)
        Me.MbPanel3.Name = "MbPanel3"
        Me.MbPanel3.Opacity = 25
        Me.MbPanel3.Radius = 5.0!
        Me.MbPanel3.Size = New System.Drawing.Size(306, 100)
        Me.MbPanel3.TabIndex = 5
        Me.MbPanel3.Text = "MBPanel"
        '
        'MbPanel2
        '
        Me.MbPanel2.BackColor = System.Drawing.Color.Transparent
        Me.MbPanel2.BackgroundImage = CType(resources.GetObject("MbPanel2.BackgroundImage"), System.Drawing.Image)
        Me.MbPanel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center
        Me.MbPanel2.BorderStyle = MBPanel.MBBorderStyle.Rounded
        Me.MbPanel2.GlassColor = System.Drawing.Color.Black
        Me.MbPanel2.Location = New System.Drawing.Point(309, 12)
        Me.MbPanel2.Name = "MbPanel2"
        Me.MbPanel2.Opacity = 25
        Me.MbPanel2.Radius = 5.0!
        Me.MbPanel2.Size = New System.Drawing.Size(144, 100)
        Me.MbPanel2.TabIndex = 4
        Me.MbPanel2.Text = "MBPanel"
        '
        'MbPanel1
        '
        Me.MbPanel1.BackColor = System.Drawing.Color.Transparent
        Me.MbPanel1.BorderStyle = MBPanel.MBBorderStyle.Rounded
        Me.MbPanel1.GlassColor = System.Drawing.SystemColors.ActiveCaption
        Me.MbPanel1.Location = New System.Drawing.Point(147, 12)
        Me.MbPanel1.Name = "MbPanel1"
        Me.MbPanel1.Opacity = 25
        Me.MbPanel1.Radius = 5.0!
        Me.MbPanel1.Size = New System.Drawing.Size(143, 100)
        Me.MbPanel1.TabIndex = 1
        Me.MbPanel1.Text = "MBPanel"
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.BackColor = System.Drawing.SystemColors.Control
        Me.ClientSize = New System.Drawing.Size(465, 255)
        Me.Controls.Add(Me.MbPanel3)
        Me.Controls.Add(Me.MbPanel2)
        Me.Controls.Add(Me.Label2)
        Me.Controls.Add(Me.Label1)
        Me.Controls.Add(Me.MbPanel1)
        Me.Controls.Add(Me.Panel1)
        Me.Name = "Form1"
        Me.Text = "MBPanel Demo"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents Panel1 As System.Windows.Forms.Panel
    Friend WithEvents MbPanel1 As MBPanel
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents MbPanel2 As MBPanel
    Friend WithEvents MbPanel3 As MBPanel

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
India India
It always seems good to hear about me, but the thing I do is I code. I'm Interested in Designing Windows Based Application, Web Applications and building Mobile Applications. Currently restricting it to Android 4.0 applications, building Internet Based Applications using ASP.NET and contributing to bring the student community to a position which will help technology to reach the greatest heights ever. A very Big fan of Microsoft & Android..!!

Comments and Discussions