Posts

codeoverflow.net has invited you to like their Facebook Page

Image
You shared your email with codeoverflow.net and they've sent you this invitation to like their page on Facebook codeoverflow.net Its a things to develope new application Check out codeoverflow.net You shared your email with codeoverflow.net and they've sent you this invitation to like their page on Facebook codeoverflow.net Its a things to develope new application         View Page     This is Spam     Thanks, The Facebook Team This message was sent to n005nirav.hack@blogger.com . If you don't want to receive these emails from Facebook in the future, please unsubscribe . Facebook, Inc., Attention: Department 415, PO Box 10005, Palo Alto, CA 94303

Download Crystal report setup for the visual studio 2012

Image
-          -       For developing the crystal report in visual studio 2012 you have to first download and install the crystal report setup for the visual studio 2012 -           -      Go to the following link and download the setup -           http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_9.exe -           -   Install the setup and then restart the visual studio. -- /\/!R@\/ - www.Codeoverflow.net

How To Use Delegate In c#.Net

Image
Definition:            Basically delegate is list of the methods with same parameter Use:            When you have many method and you want to call all method at same time with same parameter then delegate is use . Delegate is use when method takes same parameter as argument and also returns same data type value. Example:             here in example there is two methods name ‘method1’ and ‘method2’ these both method take same argument and dose not return any value. How to declare: For use delegate keyword delegate is used first you have to declare the delegate like delegate void Mydelegate ( string mystring); This delegate which return type is void and take ne argument as string an delegate name is “Mydelegate” How To Use :              For use this delegate we make insta...

How to get random element from integer array in c#.net

Image
Now for generating random element from the array first you have to generate the random number and using this random number you can get the random element form the array.   Code : -                     // array of integer                   int[] a={10,20,30,40,50,60,70,80,90};             Random rnd = new Random();             int b = rnd.Next(0,5);             //show the random element in text box             textBox1.Text = a[b].ToString(); For Generating Random rows from dataset here 

How to Generate random rows in dataset using c#.net

Image
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 resize form In C#.Net

Image
             For Resizing of form programmatically using c#.net is very easy. Here we give some code which is use to resize the form .by using this code you can make animation like application in c#.net also. Here in my application user can enter size (width and height) of the form and on click event of the button he resize the form as per its requirements For resizing form when form is in maximize state it not possible so firs we have to set state of form to be normal then we apply the. height and width properties to the form. private void button1_Click(object sender, EventArgs e) {             if (this.WindowState==FormWindowState.Maximized)             {                 this.WindowState = FormWindowState.Normal;    ...