I mean I want to use a button to create Color Dialog to change the color of text boxes.
Please Guide me.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Joe WilsonPosted Jul 3, 2014, 8:19 AM
VulpesPosted Jul 3, 2014, 6:32 AM
Just tried it myself and it worked perfectly.
Joe WilsonPosted Jul 3, 2014, 6:10 AM
VulpesPosted Jun 30, 2014, 7:29 AM
or to change the foreground color of all textboxes on the form, then replace this line:
textBox1.ForeColor = cd.Color;
with this:
RecursiveChangeForeColorTextBoxes(this.Controls, cd.Color);
and add this method:
Joe WilsonPosted Jun 30, 2014, 7:24 AM
VulpesPosted Jun 30, 2014, 5:50 AM
If you want to change the background color of all textboxes on the form, then replace this line:
textBox1.BackColor = cd.Color;
with this:
RecursiveChangeBackColorTextBoxes(this.Controls, cd.Color);
and add this method: