void Main()
{
int[] arr = new int[] {1,2,3,4,5,6,7};
string ab = arr.Length.ToString();
ab.Dump();
}
please any query post questions to me i response u soon !! i hope u may like my tutorials !!
Monday, 29 March 2021
C# how to calculate size / length of array
C# How to get Current Date Time from System
void Main()
{
string ab = Convert.ToString(DateTime.Now);
ab.Dump();
}
How to Sort Time 12Hrs Format in C# using List
Declare Class List
public class TypeData
{
public string Times {get;set;}
}
Write Down Main Function inside Console Application
void Main()
{
List<TypeData> data = new List<TypeData>();
data.Add(new TypeData {Times = "01:00 PM"});
data.Add(new TypeData {Times = "02:00 PM"});
data.Add(new TypeData {Times = "03:00 PM"});
data.Add(new TypeData {Times = "04:00 PM"});
data.Add(new TypeData {Times = "05:00 PM"});
data.Add(new TypeData {Times = "06:00 PM"});
data.Add(new TypeData {Times = "07:00 PM"});
data.Add(new TypeData {Times = "08:00 PM"});
data.Add(new TypeData {Times = "09:00 PM"});
data.Add(new TypeData {Times = "10:00 PM"});
data.Add(new TypeData {Times = "11:00 PM"});
data.Add(new TypeData {Times = "12:00 PM"});
data.Add(new TypeData {Times = "01:00 AM"});
data.Add(new TypeData {Times = "02:00 AM"});
data.Add(new TypeData {Times = "03:00 AM"});
data.Add(new TypeData {Times = "04:00 AM"});
data.Add(new TypeData {Times = "05:00 AM"});
data.Add(new TypeData {Times = "06:00 AM"});
data.Add(new TypeData {Times = "07:00 AM"});
data.Add(new TypeData {Times = "08:00 AM"});
data.Add(new TypeData {Times = "09:00 AM"});
data.Add(new TypeData {Times = "10:00 AM"});
data.Add(new TypeData {Times = "11:00 AM"});
data.Add(new TypeData {Times = "12:00 AM"});
//data.Dump();
var datafinal_AM = data.Where(x=>x.Times.Contains("AM")).ToList();
var datafinal_PM = data.Where(x=>x.Times.Contains("PM")).ToList();
List<TypeData> finalR = new List<TypeData>();
foreach(var rows in datafinal_AM)
{
finalR.Add(new TypeData {Times = rows.Times});
}
foreach(var rows in datafinal_PM)
{
finalR.Add(new TypeData {Times = rows.Times});
}
}
Output :-
Thursday, 9 October 2014
C# Step by Step How to dynamically get values from textboxes into gridview
changing accessibility name of the button to accessable in code
Form2.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MyProjectToGetGridDynamically
{
public partial class Form2 : Form
{
DataTable dt;
DataRow dr;
public Form2()
{
InitializeComponent();
dt = new DataTable();
dt.Columns.Add("id");
dt.Columns.Add("name");
}
private void button1_Click(object sender, EventArgs e)
{
dr = dt.NewRow();
dr[0] = textId.Text;
dr[1] = textName.Text;
dt.Rows.Add(dr);
dataGridView1.DataSource = dt;
}
}
}
Monday, 6 October 2014
How to use Crystal Report in visual studio 2010
using CrystalDecisions.CrystalReports.Engine;
Good Luck
Wednesday, 13 August 2014
Saturday, 9 August 2014
C# real estate property Software
list in picture show the printed list of plots of 25 x 40 is available you have facility to search record at time of interested party by name,sector , and plot size and by date as well
registeration is quite easy
you can have record facility till life time of software 100% gauranted working of software.
Registering record of plots in files is risky and this software runs on your call secured and secret no other property dealer will be aware to open and use it till you allow the software to do so
so dont waste your time on risky register and manual file system call contact me for further information 03425296318
if you r dont interested then dont call me















