Skip to main content

Posts

Showing posts from 2014

For Localize Datetime in Windows Application

  private void Form1_Load(object sender, EventArgs e)         {             // Creating a Global culture specific to our application.             System.Globalization.CultureInfo cultureInfo =new System.Globalization.CultureInfo("en-US");             // Creating the DateTime Information specific to our application.             System.Globalization.DateTimeFormatInfo dateTimeInfo =                 new System.Globalization.DateTimeFormatInfo();             // Defining various date and time formats.             dateTimeInfo.DateSeparator = "/";             dateTimeInfo.LongDatePattern = "dd-MMM-yyyy";             dateTimeInfo.ShortDatePattern = "dd/MM/yyyy";             dateTimeInfo.LongTimePattern = "hh:mm:ss tt";             dateTimeInfo.ShortTimePattern = "hh:mm tt";             // Setting application wide date time format.             cultureInfo.DateTimeFormat = dateTimeInfo;             // Assigning our custom Culture to t

Good Css for HTML Table

<style type="text/css" > /* Table 3 Style */ #tbl{     font-family:Arial;     font-size: 12px;     font-style: normal;     font-weight: normal;     text-transform: uppercase;     letter-spacing: -1px;     line-height: 1.7em;     text-align:center;     border-collapse:collapse; } #tbl thead th{     padding:6px 10px;     text-transform:uppercase;     color:#444;     font-weight:bold;     text-shadow:1px 1px 1px #fff;     border-bottom:5px solid #444; } #tbl thead th:empty{     background:transparent;     border:none; } #tbl thead :nth-child(2), #tbl tfoot :nth-child(2){     background-color: #7FD2FF; } #tbl tfoot :nth-child(2){     -moz-border-radius:0px 0px 0px 5px;     -webkit-border-bottom-left-radius:5px;     border-bottom-left-radius:5px; } #tbl thead :nth-child(2){     -moz-border-radius:5px 0px 0px 0px;     -webkit-border-top-left-radius:5px;     border-top-left-radius:5px; } #tbl thead :nth-child(3), #tbl tfoot :nth-chil