Monthly Archives: February 2012

How to convert HTML Color code to RGB color code

The following VB.Net code converts HTML color code to equivalent RGB color code. Module modMain Public Function ConvertHTMLToRGBColor(ByVal sHtmlColor As String) As Color ‘Remove the # if exists sHtmlColor = sHtmlColor.Replace(“#”, “”) Return Color.FromArgb(System.Convert.ToInt32(sHtmlColor.Substring(0, 2), 16), System.Convert.ToInt32(sHtmlColor.Substring(2, 2), 16), System.Convert.ToInt32(sHtmlColor.Substring(4, … Continue reading

Posted in VB.Net | Tagged .net code, convert HTML color code to RGB color code, html color, rgb color, vb.net code | Leave a comment

How to print some data from bas Module

Here is the sample code you can use to print your data from the bas module: Module modMain Dim sText As String Public Sub printRecord() Dim pDocument As New Printing.PrintDocument AddHandler pDocument.PrintPage, AddressOf pd_PrintPage sText = “DotNet Blogger – Your … Continue reading

Posted in VB.Net | Tagged how to print, module, print, print data | Leave a comment