We help IT Professionals succeed at work.

user defined control with value member and displaymember configurable

kranthi4uonly
on
208 Views
Last Modified: 2013-12-17
i want user defined combobox for example i want to dispaly "default" and "override" text in combobox

so i will give in items collection so when i submit the form it should take only 1 character from the dispalyed text i.e if i select "default" in combobox its "value member" property should be set to "D" but display member should be set to "Display"
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
1) ASP.NET or WinForms?

2) So, you want the value member to have "D" and "O", and the display member to have "Default" and "Override"?

Bob

Author

Commented:
yes ur right  
 its " windows forms" i must  be able to set it in the properties after the user defiend controls has done
after inheriting ucer defiend control   i should be able to see in the properties and set the dispaly meber and value member their in prop(f4 key)
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
How are you adding items to the ComboBox?

Bob

Author

Commented:
thanks for ur help
i have to add  items from the properties(f4 key)   items  collection  
after inheriting the user defiend control i wil be ading in itemscollection  and i must be able to set "dispaly memebr" as well as "valuememeber" in the properties and should be able to enter the values
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.