Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Imports System.Reflection
Dim t As Type = [Assembly].LoadWithPartialName("System.Drawing").GetType("System.Drawing.Brushes")
Dim b As Brush = t.GetProperty(Color.White.Name).GetValue(Nothing, Nothing)
'Set up color and get the color number from column 6
Dim myColor As Color = GetVBColor(Str(myDataGrid(e.Row, 6)))
Dim MyBrush As New SolidBrush(myColor)
e.ForeBrush = MyBrush
Private Function GetVBColor(ByVal myColor As String)
Dim b As Integer = CInt(Int(myColor / 65536))
Dim g As Integer = CInt(Int((myColor - b * 65536) / 256))
Dim r As Integer = CInt(Int(myColor - b * 65536 - g * 256))
Return Color.FromArgb(255, r, g, b)
End Function