You can use some built in formats present in VS. In design view right click the calendar and click Show Smart Tag and then choose Auto Format. There are a number of built in formats present for the calendar.
Otherwise you can just format the calendar as you wish by setting value of its attribute(color s for various properties) in the property window.
User Profile
Collapse
-
You can add an ArrayList as a single item in another ArrayList which makes the 2nd ArrayList a Multidimentiona l ArrayList
Code:ArrayList both = new ArrayList(); for (int i = 0; i < fPath.Count; i++) { ArrayList temp = new ArrayList(); temp.Add(fPath[i]); temp.Add(md5File[i]); both.Add(temp); }Leave a comment:
-
Rohit Garg replied to How to close two form without using Application.Exit() the FormObj.Close() doesnt wokin C SharpYou can close forms only if you are closing those forms from the same class in which they are accessible. As an example i declared two forms within Main form and opened both the forms when the main form is loading i.e within the Form_Load event of the main form. and then i closed both the form when user clicked the button present in the main form.
...Code:Form f1 = new Form(); Form f2 = new Form(); privateLeave a comment:
-
You can use XMLReader Class to read data from XML files and then you can store data in arrays while reading.Leave a comment:
-
You can use Select Method of DataTable class.
Have a look at this http://msdn.microsoft.com/en-us/library/way3dy9w.aspxLeave a comment:
-
You have to use it in the following way
and for lowercaseCode:string strCountry = this.textBox1.Text.ToUpper();
Code:string strCountry = this.textBox1.Text.ToLower();
Leave a comment:
-
in place of arraylist i recommend you using points array which directly save your points information and that can be used directly to draw lines between consecutive points. as an example
...Code:Graphics gr = this.CreateGraphics(); Pen pen = new Pen(Color.Black, 1); System.Drawing.Point[] pts = new Point[4]; pts[0] = new Point(20, 20); pts[1] = new Point(20, 140); pts[2] = new Point(60, 60);
Leave a comment:
-
Hi kumardharanik, if you are having two radio buttons "radioButtonYes " and "radiobuttonNo" , a submit button "button1" and a sql database table named "test" in your database with just one coloumn having name "checked" and data type bit. then following code can help you storing the value of checked property of radio button on button clicking.
...Code:SqlConnection con = new SqlConnection("DataLast edited by Curtis Rutland; Aug 5 '10, 09:09 PM. Reason: Please use [CODE][/CODE] tags when posting code.Leave a comment:
No activity results to display
Show More
Leave a comment: