UserControl

  • Thread starter Thread starter Yoshitha
  • Start date Start date
Y

Yoshitha

Hi

i've developed one usr control using windows control library which is having
some public properties, after making this as dll i've used this control in
my windows application, after placing this control into my form and checked
the properties of this usercontrol in properties window then i didnt get the
properties (which are public) into properties window, so l also tried of
creating an object for that usercontrol and checked and i didnt get any
properties which i've coded.

can anybody tell me why these properties are not visible to me?

Thanx in advance
yoshitha
 
Hi Yoshita,

if it's your own properties, try the Browsable and EditorBrowsable
Attribute:

[Browsable( true )]
[EditorBrowsable(EditorBrowsableState.Always)]
public string myProperty {
get { ... }
set { ... }
}

Regards,

Frank Eller
 
Back
Top