Designer Support for SP2/3 properties?

  • Thread starter Thread starter Brian McVay
  • Start date Start date
B

Brian McVay

Hi all,

Is there any way to have the VB.NET 2003 design environment for Smart Device
Applications core device controls (like the Button control) show all the
properties available for the Compact Framework SP 2/3 such as BackColor and
ForeColor in the properties window to set at design time, or are these
properties only setable in code during run time?

Thanks in advance.

Brian
 
Only by deriving new classes from these controls, and hooking up the design
time properties - this is demonstrated in this series of articles showing
the BackColor property in the ComboBoxEx:-
http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=0743330d-fe2b-4978-b9a8-03a424f17df4
However this still means changing your runtime code to use the derived
classes - so you would effectively need to wrap all of the standard controls
in this way, build runtime and designer versions of these controls, then
alter your application to reference these controls rather than the standards
in System.Windows.Forms. In practise it's easier to set these properties in
code - place the code in your form constructor after the call to
InitializeComponent()

Peter
 
Back
Top