Click here to Skip to main content
12,701,828 members (36,008 online)
Click here to Skip to main content
Articles » Languages » VB.NET » General » Downloads

Stats

735.6K views
3.6K downloads
281 bookmarked
Posted

Using PropertyGrid Part-I

, 3 Feb 2003
Explains about PropertyGrid and how to use, with detailed examples
''' Developed by : Sreenivas Vemulapalli
''' vemvas@yahoo 
''' Date: 08/15/2002
'''
Imports System.ComponentModel
'''
Public Class ApplicationProperties
    Private _Title As String
    Private _ApplicationIcon As String
    Private _ApplicationSize As Size
    Private _ApplicationLocation As Point
    Private _ApplicationCursor As System.Windows.Forms.Cursor
    Private _ApplicationFont As System.Drawing.Font
    Private _ApplicationFontColor As System.Drawing.Color
    Private _EmailAddress As String
    Private _EmailServer As String
    Private _SQLConnectStringProperties As New ConnectStringProperties()
    Private _Client
    Private _MaximizeOnStartup As Boolean
    Private _ShowTips As Boolean
    '''
     

    <CategoryAttribute("Design"), _
    Browsable(True), _
    [ReadOnly](False), _
    BindableAttribute(False), _
    DefaultValueAttribute(""), _
    DesignOnly(False), _
    DescriptionAttribute("")> _
    Public Property ApplicationSize() As Size
        Get
            Return _ApplicationSize
        End Get
        Set(ByVal Value As Size)
            _ApplicationSize = Value
        End Set
    End Property
    Public Property ApplicationLocation() As Point
        Get
            Return _ApplicationLocation
        End Get
        Set(ByVal Value As Point)
            _ApplicationLocation = Value
        End Set
    End Property

    Public Property Title() As String
        Get
            Return _Title
        End Get
        Set(ByVal Value As String)
            _Title = Value
        End Set
    End Property
    Public Property ApplicationCursor() As System.Windows.Forms.Cursor
        Get
            Return _ApplicationCursor
        End Get
        Set(ByVal Value As System.Windows.Forms.Cursor)
            _ApplicationCursor = Value
        End Set
    End Property
    Public Property ApplicationIcon() As String
        Get
            Return _ApplicationIcon
        End Get
        Set(ByVal Value As String)
            _ApplicationIcon = Value
        End Set
    End Property
    Public Property ApplicationFont() As System.Drawing.Font
        Get
            Return _ApplicationFont
        End Get
        Set(ByVal Value As System.Drawing.Font)
            _ApplicationFont = Value
        End Set
    End Property
    Public Property ApplicationFontColor() As System.Drawing.Color
        Get
            Return _ApplicationFontColor
        End Get
        Set(ByVal Value As System.Drawing.Color)
            _ApplicationFontColor = Value
        End Set
    End Property
    Public Property EmailAddress() As String
        Get
            Return _EmailAddress
        End Get
        Set(ByVal Value As String)
            _EmailAddress = Value
        End Set
    End Property
    Public Property EmailServer() As String
        Get
            Return _EmailServer
        End Get
        Set(ByVal Value As String)
            _EmailServer = Value
        End Set
    End Property
    Public Property SQLConnectStringProperties() As ConnectStringProperties
        Get
            Return _SQLConnectStringProperties
        End Get
        Set(ByVal Value As ConnectStringProperties)
            _SQLConnectStringProperties = Value
        End Set
    End Property
    Public Property Client()
        Get
            Return _Client
        End Get
        Set(ByVal Value)
            _Client = Value
        End Set
    End Property
    Public Property MaximizeOnStartup() As Boolean
        Get
            Return _MaximizeOnStartup
        End Get
        Set(ByVal Value As Boolean)
            _MaximizeOnStartup = Value
        End Set
    End Property
    Public Property ShowTips() As Boolean
        Get
            Return _ShowTips
        End Get
        Set(ByVal Value As Boolean)
            _ShowTips = Value
        End Set
    End Property
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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Sreenivas Vemulapalli
Web Developer
United States United States
Working as consultant in Client/server,Web Development, Automation areas using C#,Vb,Vb.net,Asp.net,Sql Server,Xml,Html&Dhtml etc..
Looking for a challenging project in .NET

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170118.1 | Last Updated 4 Feb 2003
Article Copyright 2002 by Sreenivas Vemulapalli
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid