I am new to C#.
I have to enable my text box whn the check box is checked.
It would be very helpful if i can get the code for this.
You can use a one-liner ;) [code] textBox1.Enabled = checkBox1.Checked; [/code] DIPY -- Are you getting a callstack overflow error? I'm looking at the code you pasted and in the event you are changing the check status of the checkbox that fired the event. [code] public void Checked_Changed(Object sender, EventArgs … Read More
textBox1.Enabled = [COLOR="Red"]![/COLOR]checkBox1.Checked; (using exclamation point) Try it like that for the effect that you want. Read More
It's two different people, that's why. Bokac piggybacked on the original thread (which he probably shouldn't have). Read More
Edited by __avd: Add [code] tags.
Edited by th3learner: n/a
Edited by jonsca: n/a