hi,
how do u make a text box uneditable at runtime, the value is shown in the textbox but the value cannot be changed,
how can i do this,??

thanxxxxxxxx

Recommended Answers

All 5 Replies

TextBox class has the property ReadOnly... set it to true... you can do that in the properties window or in the code...

is it same for the Combo box in C#

if it comes to combo box there is no ReadOnly property... so depending on what you want to do you can f.ex. use DropDownStyle property (if you select DropDownList there's no way to put values other than from list) or Enable..

u have describe to select values only from the combo box with out allowing the user to enter the details.how can i make the user to not to select items in the combo box and allow a value entered earlier to display, the user cannot enter or select details from the combo box

thanx

set enable property to false....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.