Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27056

change color of textbox label

$
0
0
Hi
Is it possible to make a function or a sub to change the text color and font.

lblResultaat.ForeColor = Color.Blue
lblResultaat.Font = New System.Drawing.Font("Arial", 10)

So that I have not to repeated for each textbox
textbox1.ForeColor = Color.Blue
textbox1.Font = New System.Drawing.Font("Arial", 10)
textbox2.ForeColor = Color.Blue
textbox2 = New System.Drawing.Font("Arial", 10)

Viewing all articles
Browse latest Browse all 27056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>