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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top