Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Refreshing Property

1 view
Skip to first unread message

Derek Hart

unread,
Jun 7, 2009, 7:15:01 PM6/7/09
to
I have a property on a custom control that reads from a database, and I use
this in the Visual Studio designer. The problem is that the list of items
that are read from the database are constantly changing. And this property
does not update. How can I force an update, or do I have to build a Windows
Form that pops up inside the property so I can control it better?

Private _DataField As String = "(none)"

<TypeConverter(GetType(DataFieldList)), _
CategoryAttribute(GlobalCode.ProductName),
DefaultValueAttribute("(none)"), _
RefreshProperties(RefreshProperties.Repaint), _
DescriptionAttribute("Choose a field to link to the database.")> _
Public Property DataField() As String
Get
Return _DataField
End Get
Set(ByVal Value As String)
_DataField = Value
End Set
End Property


0 new messages