C#(.net1.1) calender

// Save this as "something.cs", then type "csc something.cs" @ command prompt with the proper directory

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Calendar
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.MonthCalendar monthCalendar1;
private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
private void InitializeComponent()
{
this.monthCalendar1 = new System.Windows.Forms.MonthCalendar();
this.SuspendLayout();
//
// monthCalendar1
//
this.monthCalendar1.BackColor = System.Drawing.Color.White;
this.monthCalendar1.CalendarDimensions = new System.Drawing.Size(3, 4);
this.monthCalendar1.FirstDayOfWeek = System.Windows.Forms.Day.Monday;
this.monthCalendar1.ForeColor = System.Drawing.Color.DarkGoldenrod;
this.monthCalendar1.Location = new System.Drawing.Point(0, 0);
this.monthCalendar1.Name = "monthCalendar1";
this.monthCalendar1.TabIndex = 0;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(538, 584);
this.ControlBox = false;
this.Controls.Add(this.monthCalendar1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Location = new System.Drawing.Point(0, 200);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Calender";
this.TopMost = true;
this.TransparencyKey = System.Drawing.Color.White;
this.ResumeLayout(false);

}
#endregion
[STAThread]
static void Main()
{
Application.Run(new Form1());
}

}
}
 
then, something.exe will be created at the directory, maybe Desktop if you firstly save the something.cs at the Desktop.

Finally, just run the exe.
 
This is an OpenSource Project of the ultimate calendar tool for 'EliteTraders'.

exclusively for Windows Users with .netframework, not for Linux users.

By the way, so far, I haven't written a single code.
The entire code shown above were created automatically by VisualStudio.net IDE.

:D
 
Back
Top