how to make textbox readonly in c#.net
How do I make a textbox that only accepts numbers?How do I update the GUI from another thread in C? Static readonly vs const. What is a NullReferenceException, and how do I fix it? I have one TextBox. I want to make textbox readonly property true or false during an event.Browse other questions tagged c asp.net visual-studio-2008 user-controls readonly or ask your own question. I have a form in windows application c.net2005. It includes two controls namely a textbox and a checkbox. on my form load, the textbox should be read only.Again when I uncheck the checkbox, the textbox should become readonly. How to achieve this functionality? You may want to also set the BackColor property to match a ReadOnly TextBoxs BackColor for consistency. how to make a combobox read only? Blog Archive About Me Feed Const vs. readonly vs. static readonly in C .NET. Based on some criteria in that pop up page, it will make one of the text boxes in the parent page, readonly. I am not able to get that. I tried the following code, I am not getting an error, but it is not making my text box readonly TextBox.ReadOnly Property. .
NET Framework (current version).Namespace: System.Web.UI.WebControls Assembly: System.Web (in System.Web.