Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I need to customize a property for my UserControl, but I need the property to have several choices inside a combobox, like TextAlignment property, where you have already 3 options (Left, Center, Right) to choose from.

 

Any suggestions?

 

Thank you

Posted

Well, how do I do that? Could you show me a small example?

 


enum myEnum { one, two, three };

public myEnum TEST
{
   get
   {
       return myEnum;
   }
   set
   {
       myEnum.one = value;
   }
}

 

Needless to say the above code does not work. How do I assign a selected value to a enum and how do I read from it?

 

Thank you

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...