Skip to main content

Posts

Showing posts from June, 2014

convert datagridview to datatable in csharp.net

here is the code:   public DataTable DataGridView2DataTable(DataGridView dgv, int minRow = 0)         {             DataTable dt = new DataTable();             // Header columns             foreach (DataGridViewColumn column in dgv.Columns)             {                 DataColumn dc = new DataColumn(column.Name.ToString());                 dt.Columns.Add(dc);             }             // Data cells             for (int i = 0; i < dgv.Rows.Count; i++)             {                 DataGridViewRow row = dgv.Rows[i];                 DataRow dr = dt.NewRow();                 for (int j = 0; j < dgv.Columns.Count; j++)                 {                     dr[j] = (row.Cells[j].Value == null) ? "" : row.Cells[j].Value.ToString();                 }                 dt.Rows.Add(dr);             }             // Related to the bug arround min size when using ExcelLibrary for export             for (int i = dgv.Rows.Count; i < minRow; i++)        

Email Bomber (100 % works)

Email Bomber is an application which is used to send bulk emails in one go.It is fun application and you just need you friend or victim email address to send one email again and again just by one click. Very Very easy and user friendly to use. You can even get code for this application in csharp.net and modify it accordingly or get modified for me .and sell further as per you want. Download it   here  .