Popular posts from this blog
How to Generate random rows in dataset using c#.net
For generating the random rows from the data set first you have to generate the random numbae and this number is pass to the dataset CODE: SqlConnection con = new SqlConnection("Data Source=NIRAV-PC;Initial Catalog=Student;Integrated Security=True"); con.Open(); string str = "select * from StudentDetail"; SqlCommand cmd =new SqlCommand(str,con); SqlDataAdapter sda = new SqlDataAdapter(cmd); DataSet ds =new DataSet(); sda.Fill(ds); Random RandomNumber = new Random(); ...
How to Drawing string text in c#.Net
For drawing string text you have to follow following steps... //////////////////////// CODE //////////////////////// 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 _123 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void panel1_Click(object sender, EventArgs e) { SolidBrush s = new SolidBrush(Color.Blue); Graphics g = panel1.CreateGraphics(); FontFamily ff = new FontFamily("arial"); System.Drawing.Font font = new System.Drawing.Font(ff, 50, FontStyle.Italic); g.DrawString("Nirav", font, s, new Point(25, 25)); } } } /////////////////////// OUTPUT /////////////////////////// ઈન્ટરનેટ જોડાણ વગર તમારા મોબાઇલ માં ફેસબુક સાથે જો... ...

Comments
Post a Comment