We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ReadOnly ComboBoxAdv

Thread ID:





7122 Sep 12,2003 11:01 AM UTC Sep 14,2003 10:21 AM UTC WinForms 3
Tags: Tools
Asked On September 12, 2003 11:01 AM UTC

How can I make a ComboBoxAdv ReadOnly (i.e, the control remains enabled, but the selected item cannot be changed.) Thanx

Arun Srinivasan [Syncfusion]
Replied On September 12, 2003 06:33 PM UTC

Hi Omar, Well you can do that by listening to the BeforePopUp event of the PopupContainer which controls the dropdown of the ComboBoxAdv. Arun

Replied On September 12, 2003 11:35 PM UTC

Greetings, OK.. that was great. NOW the user can not dropdown the cmbo BUT the user can still write text inside the TextBox portion. I tried setting the cbo.TextBox.Readonly = True but all that did is to make the control's color as if its DISABLED and still you could write text inside it. How can I make the textbox portion ReadOnly just like a normal textbox. Thanx

Arun Srinivasan [Syncfusion]
Replied On September 14, 2003 10:21 AM UTC

Omar, To disable typing into the ComboBoxAdv, you need to set the DropDownStyle property to DropDownList. Arun


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon