Click here to Skip to main content
15,915,858 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 6:14
carlos_rocha15-Dec-04 6:14 
GeneralRe: Form creation crisis!!! Pin
Dennis C. Dietrich15-Dec-04 6:35
Dennis C. Dietrich15-Dec-04 6:35 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 6:43
carlos_rocha15-Dec-04 6:43 
GeneralRe: Form creation crisis!!! Pin
carlos_rocha15-Dec-04 22:11
carlos_rocha15-Dec-04 22:11 
QuestionHow to add Icon Overlay in VB.Net Pin
Zenly15-Dec-04 3:56
Zenly15-Dec-04 3:56 
AnswerRe: How to add Icon Overlay in VB.Net Pin
Zenly16-Dec-04 6:14
Zenly16-Dec-04 6:14 
Generalfont like property Pin
Stumped115-Dec-04 3:21
sussStumped115-Dec-04 3:21 
GeneralRe: font like property Pin
OICU81215-Dec-04 16:52
OICU81215-Dec-04 16:52 
I think I know the answer to your question and there a few steps you need to take. First is to create a class for a type converter. This is a generic type converter to support my custom controls forming custom textbox, panel and label controls that inherit from a base class called DHObjects.

<br />
Public Class DHTypeConverter<br />
    Inherits TypeConverter<br />
<br />
    Public Overloads Overrides Function GetPropertiesSupported(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean<br />
        Return True<br />
    End Function<br />
<br />
    Public Overloads Overrides Function GetProperties(ByVal context As System.ComponentModel.ITypeDescriptorContext, ByVal value As Object, ByVal attributes() As System.Attribute) As System.ComponentModel.PropertyDescriptorCollection<br />
        Return TypeDescriptor.GetProperties(GetType(DHObject))<br />
<br />
    End Function<br />
End Class<br />


NEXT is to create your class of controls and then add your custom control to a class or usercontrol in the form of a property and add the attibutes that tell the property grid how to handle your custom type:


<br />
<TypeConverter(GetType(DHTypeConverter)), _<br />
       DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _<br />
       Property MoveBackButton() As DHButton<br />
        Get<br />
            Return m_MoveBackButton<br />
        End Get<br />
        Set(ByVal Value As DHButton)<br />
            m_MoveBackButton = Value<br />
        End Set<br />
    End Property<br />

GeneralRe: font like property Pin
Stumped116-Dec-04 2:43
sussStumped116-Dec-04 2:43 
GeneralRe: font like property Pin
OICU81216-Dec-04 4:50
OICU81216-Dec-04 4:50 
GeneralHelp needed Pin
singhrajendra15-Dec-04 2:00
singhrajendra15-Dec-04 2:00 
GeneralRe: Help needed Pin
Dennis C. Dietrich15-Dec-04 2:16
Dennis C. Dietrich15-Dec-04 2:16 
GeneralRe: Help needed Pin
singhrajendra15-Dec-04 18:45
singhrajendra15-Dec-04 18:45 
GeneralRe: Help needed Pin
Dave Kreskowiak16-Dec-04 3:42
mveDave Kreskowiak16-Dec-04 3:42 
GeneralMod Operator Help PLEASE... Pin
stingerj15-Dec-04 1:18
stingerj15-Dec-04 1:18 
GeneralRe: Mod Operator Help PLEASE... Pin
Dennis C. Dietrich15-Dec-04 1:46
Dennis C. Dietrich15-Dec-04 1:46 
GeneralRe: Mod Operator Help PLEASE... Pin
stingerj15-Dec-04 2:46
stingerj15-Dec-04 2:46 
GeneralRe: Mod Operator Help PLEASE... Pin
stingerj15-Dec-04 3:05
stingerj15-Dec-04 3:05 
GeneralRe: Mod Operator Help PLEASE... Pin
J4amieC15-Dec-04 5:33
J4amieC15-Dec-04 5:33 
GeneralRe: Mod Operator Help PLEASE... Pin
stingerj15-Dec-04 6:35
stingerj15-Dec-04 6:35 
GeneralRe: Mod Operator Help PLEASE... Pin
Tom John15-Dec-04 5:44
Tom John15-Dec-04 5:44 
GeneralRe: Mod Operator Help PLEASE... Pin
stingerj15-Dec-04 6:41
stingerj15-Dec-04 6:41 
Generalso nobody can help me.... Pin
stingerj15-Dec-04 11:22
stingerj15-Dec-04 11:22 
GeneralRe: so nobody can help me.... Pin
Dave Kreskowiak15-Dec-04 12:26
mveDave Kreskowiak15-Dec-04 12:26 
GeneralRe: Mod Operator Help PLEASE... Pin
santosh jaiswal 200415-Dec-04 18:22
santosh jaiswal 200415-Dec-04 18:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.