Prevent users from editing text in ComboBox-DOT NET
How we can prevent users of the application from editing a text in ComboBox controls in the .NET 4.0?
Expert
ComboBox class has DropDownStyle property that is used to describe display style of an item in a ComboBox control. DropDownStyle property allows the value from a ComboBoxStyle enumeration that contains three members to describe styles for items like: DropDownList, Simple and DropDown. DropDownList value of a ComboBoxStyle enumeration is selected to set ComboBox control as non-editable by the users, as described in the following code:
Code for C#:
ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
Code for VB:
ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList
Define Query String? Explain its advantages and disadvantages?
What is meant by the term Global Assembly Cache (GAC)?
Why do we require the nested master pages in the Web site?
How we can enable impersonation in the web.config file?
Illustrate Queues and Stacks?
What do you mean by Cookie?
What are the layouts of ASP.NET Pages?
Define the execution process of managed code?
Name the root namespace which is used for fundamental types in .NET Framework?
What is meant by the term Extensible Markup Language (XML).
18,76,764
1934613 Asked
3,689
Active Tutors
1441360
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!