HighTechTalks DotNet Forums  

Refreshing Property

Dotnet Framework (WinForms DesignTime) microsoft.public.dotnet.framework.windowsforms.designtime


Discuss Refreshing Property in the Dotnet Framework (WinForms DesignTime) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Derek Hart
 
Posts: n/a

Default Refreshing Property - 06-07-2009 , 06:15 PM






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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.