Library code snippets
VB.NET Stylise Your Forms like you would with CSS on a webpage
By phill64, published on 19 Jan 2006
Code
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
This is just an example, setting textbox's forecolor to Red, and buttons style to Flat.
Related articles
Related discussion
-
bar graphs in visual basic.net
by bhabybash (1 replies)
-
How to write the category attribut in a class dynamically
by converter2009 (1 replies)
-
VB.NET: Hide and show table using radio buttons
by converter2009 (1 replies)
-
VB.Net Button Problem
by pysdex (0 replies)
-
Unable to access AxInterop.AcoPdflib.dll on 64 bit OS
by Shaila14041981 (0 replies)
Related podcasts
-
Episode 3: Anne van Kesteren on CSS, XHR, and other Web standards
Anne van Kesteren is an Opera Software employee who is deeply involved in the standards community. Just take a look at his page on the WHATWG site and you will see the many specifications that he is actively working on, such as: access-control XMLHttpRequest XMLHttpRequest2 cssom-view css3-media...
This thread is for discussions of VB.NET Stylise Your Forms like you would with CSS on a webpage.