seema.nare@oasis-bs.com
Active member
- Joined
- May 19, 2006
- Messages
- 27
- Programming Experience
- Beginner
I am using the background images in my application. And I want different labels in my application with some defined colors eg My every title in application should be of verdana 14pt Blue color, subtitile in arial 12pt Black color.
In short I want to implement it silmilar to .css in web pages.How could I implement that in VB.net application ?
I am NOT looking for the code like this
Sub Stylize(frm As Form)
Dim Con As Control
For i = 0 To frm.Controls.Count - 1
Con = frm.Controls(i)
If TypeOf Con Is TextBox Then Con.ForeColor = Color.Red
If TypeOf Con Is Button Then Con.FlatStyle = FlatStyle.Flat
Next
End Sub
Bcas my label can be of "Title", "SubTitle"
Any solution?
In short I want to implement it silmilar to .css in web pages.How could I implement that in VB.net application ?
I am NOT looking for the code like this
Sub Stylize(frm As Form)
Dim Con As Control
For i = 0 To frm.Controls.Count - 1
Con = frm.Controls(i)
If TypeOf Con Is TextBox Then Con.ForeColor = Color.Red
If TypeOf Con Is Button Then Con.FlatStyle = FlatStyle.Flat
Next
End Sub
Bcas my label can be of "Title", "SubTitle"
Any solution?