databinding to custom control

TommyLiu

Member
Joined
Jul 29, 2008
Messages
7
Programming Experience
5-10
I try to create a custom control by using VB 2008 Express Edition. This control contains one textbox and one button by using usercontrol class to build up. For this control picture, please refer to
pick1.jpg
.
But I cannot use the proeprtygrid to setup the databindings property of this new custom control like
pick3.jpg
.
Do you have any ideal or suggestion to let me be possible? Thank you very much.
 

ryanoq

New member
Joined
Sep 20, 2008
Messages
1
Programming Experience
5-10
Although its been a while thought I'd answer anyway:

VB.NET:
Imports System.ComponentModel

    Private m_AltFileName As String
    ''' <summary>
    ''' The full path of an alternate image file to display such as a thumbnail.
    ''' </summary>
    ''' <remarks></remarks>
    <Description("The full path of an alternate image file to display such as a thumbnail.")> _
    [B][COLOR="Red"]<Bindable(True)> _[/COLOR][/B]
    Public Property AltFileName() As String
        Get
            Return m_AltFileName
        End Get
        Set(ByVal value As String)
            m_AltFileName = value
        End Set
    End Property
 

Latest posts

Top Bottom