Click here to Skip to main content
15,887,241 members
Articles / Desktop Programming / Windows Forms

Countdown Reminders

Rate me:
Please Sign up or sign in to vote.
4.92/5 (33 votes)
24 Apr 2010CPOL5 min read 66.6K   2.9K   69  
Create countdown timers to remind you of upcoming events.
namespace CountDownReminder
{
	partial class CounterEditor
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Windows Form Designer generated code

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.dgvCounters = new System.Windows.Forms.DataGridView();
			this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.TargetDate = new CountDownReminder.CalendarColumn();
			this.Repeat = new System.Windows.Forms.DataGridViewCheckBoxColumn();
			this.RepeatInterval = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.IntervalAmount = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.Description = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.btnOK = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			this.btnAddCounter = new System.Windows.Forms.Button();
			this.btnRemoveCounter = new System.Windows.Forms.Button();
			this.btnMoveUp = new System.Windows.Forms.Button();
			this.btnMoveDown = new System.Windows.Forms.Button();
			this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.calendarColumn1 = new CountDownReminder.CalendarColumn();
			this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.ckAlwaysOnTop = new System.Windows.Forms.CheckBox();
			((System.ComponentModel.ISupportInitialize)(this.dgvCounters)).BeginInit();
			this.SuspendLayout();
			// 
			// dgvCounters
			// 
			this.dgvCounters.AllowUserToAddRows = false;
			this.dgvCounters.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
						| System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.dgvCounters.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.dgvCounters.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.Index,
            this.TargetDate,
            this.Repeat,
            this.RepeatInterval,
            this.IntervalAmount,
            this.Description});
			this.dgvCounters.Location = new System.Drawing.Point(12, 28);
			this.dgvCounters.Name = "dgvCounters";
			this.dgvCounters.RowHeadersVisible = false;
			this.dgvCounters.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
			this.dgvCounters.Size = new System.Drawing.Size(636, 203);
			this.dgvCounters.TabIndex = 0;
			// 
			// Index
			// 
			this.Index.DataPropertyName = "Index";
			this.Index.HeaderText = "Index";
			this.Index.Name = "Index";
			this.Index.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
			this.Index.Visible = false;
			this.Index.Width = 50;
			// 
			// TargetDate
			// 
			this.TargetDate.DataPropertyName = "TargetDate";
			this.TargetDate.HeaderText = "Target Date";
			this.TargetDate.Name = "TargetDate";
			this.TargetDate.Width = 175;
			// 
			// Repeat
			// 
			this.Repeat.DataPropertyName = "Repeat";
			this.Repeat.HeaderText = "Repeat?";
			this.Repeat.Name = "Repeat";
			this.Repeat.Width = 75;
			// 
			// RepeatInterval
			// 
			this.RepeatInterval.DataPropertyName = "RepeatInterval";
			this.RepeatInterval.HeaderText = "Interval";
			this.RepeatInterval.Items.AddRange(new object[] {
            "None",
            "Hourly",
            "Daily",
            "Weekly",
            "Monthly",
            "Yearly"});
			this.RepeatInterval.Name = "RepeatInterval";
			this.RepeatInterval.Width = 75;
			// 
			// IntervalAmount
			// 
			this.IntervalAmount.DataPropertyName = "IntervalAmount";
			this.IntervalAmount.HeaderText = "Interval Amount";
			this.IntervalAmount.Name = "IntervalAmount";
			this.IntervalAmount.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.IntervalAmount.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
			// 
			// Description
			// 
			this.Description.DataPropertyName = "Description";
			this.Description.HeaderText = "Description";
			this.Description.Name = "Description";
			this.Description.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
			this.Description.Width = 175;
			// 
			// btnOK
			// 
			this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.btnOK.Location = new System.Drawing.Point(683, 28);
			this.btnOK.Name = "btnOK";
			this.btnOK.Size = new System.Drawing.Size(75, 23);
			this.btnOK.TabIndex = 1;
			this.btnOK.Text = "OK";
			this.btnOK.UseVisualStyleBackColor = true;
			this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
			// 
			// btnCancel
			// 
			this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnCancel.Location = new System.Drawing.Point(683, 58);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(75, 23);
			this.btnCancel.TabIndex = 2;
			this.btnCancel.Text = "Cancel";
			this.btnCancel.UseVisualStyleBackColor = true;
			this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
			// 
			// btnAddCounter
			// 
			this.btnAddCounter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.btnAddCounter.Location = new System.Drawing.Point(683, 88);
			this.btnAddCounter.Name = "btnAddCounter";
			this.btnAddCounter.Size = new System.Drawing.Size(75, 23);
			this.btnAddCounter.TabIndex = 3;
			this.btnAddCounter.Text = "Add Counter";
			this.btnAddCounter.UseVisualStyleBackColor = true;
			this.btnAddCounter.Click += new System.EventHandler(this.btnAddCounter_Click);
			// 
			// btnRemoveCounter
			// 
			this.btnRemoveCounter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.btnRemoveCounter.Location = new System.Drawing.Point(683, 118);
			this.btnRemoveCounter.Name = "btnRemoveCounter";
			this.btnRemoveCounter.Size = new System.Drawing.Size(75, 23);
			this.btnRemoveCounter.TabIndex = 4;
			this.btnRemoveCounter.Text = "Remove Counter";
			this.btnRemoveCounter.UseVisualStyleBackColor = true;
			this.btnRemoveCounter.Click += new System.EventHandler(this.btnRemoveCounter_Click);
			// 
			// btnMoveUp
			// 
			this.btnMoveUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.btnMoveUp.Location = new System.Drawing.Point(683, 148);
			this.btnMoveUp.Name = "btnMoveUp";
			this.btnMoveUp.Size = new System.Drawing.Size(75, 23);
			this.btnMoveUp.TabIndex = 5;
			this.btnMoveUp.Text = "Move Up";
			this.btnMoveUp.UseVisualStyleBackColor = true;
			this.btnMoveUp.Click += new System.EventHandler(this.btnMoveUp_Click);
			// 
			// btnMoveDown
			// 
			this.btnMoveDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.btnMoveDown.Location = new System.Drawing.Point(683, 178);
			this.btnMoveDown.Name = "btnMoveDown";
			this.btnMoveDown.Size = new System.Drawing.Size(75, 23);
			this.btnMoveDown.TabIndex = 6;
			this.btnMoveDown.Text = "Move Down";
			this.btnMoveDown.UseVisualStyleBackColor = true;
			this.btnMoveDown.Click += new System.EventHandler(this.btnMoveDown_Click);
			// 
			// dataGridViewTextBoxColumn1
			// 
			this.dataGridViewTextBoxColumn1.DataPropertyName = "Index";
			this.dataGridViewTextBoxColumn1.HeaderText = "Index";
			this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
			this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
			this.dataGridViewTextBoxColumn1.Width = 50;
			// 
			// calendarColumn1
			// 
			this.calendarColumn1.DataPropertyName = "TargetDate";
			this.calendarColumn1.HeaderText = "Target Date";
			this.calendarColumn1.Name = "calendarColumn1";
			this.calendarColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
			this.calendarColumn1.Width = 200;
			// 
			// dataGridViewTextBoxColumn2
			// 
			this.dataGridViewTextBoxColumn2.DataPropertyName = "IntervalAmount";
			this.dataGridViewTextBoxColumn2.HeaderText = "Interval Amount";
			this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
			this.dataGridViewTextBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
			// 
			// dataGridViewTextBoxColumn3
			// 
			this.dataGridViewTextBoxColumn3.DataPropertyName = "Description";
			this.dataGridViewTextBoxColumn3.HeaderText = "Description";
			this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
			this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
			// 
			// ckAlwaysOnTop
			// 
			this.ckAlwaysOnTop.AutoSize = true;
			this.ckAlwaysOnTop.Location = new System.Drawing.Point(13, 5);
			this.ckAlwaysOnTop.Name = "ckAlwaysOnTop";
			this.ckAlwaysOnTop.Size = new System.Drawing.Size(98, 17);
			this.ckAlwaysOnTop.TabIndex = 7;
			this.ckAlwaysOnTop.Text = "Always On Top";
			this.ckAlwaysOnTop.UseVisualStyleBackColor = true;
			// 
			// CounterEditor
			// 
			this.AcceptButton = this.btnOK;
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.CancelButton = this.btnCancel;
			this.ClientSize = new System.Drawing.Size(770, 243);
			this.Controls.Add(this.ckAlwaysOnTop);
			this.Controls.Add(this.btnCancel);
			this.Controls.Add(this.btnOK);
			this.Controls.Add(this.btnAddCounter);
			this.Controls.Add(this.btnRemoveCounter);
			this.Controls.Add(this.btnMoveUp);
			this.Controls.Add(this.btnMoveDown);
			this.Controls.Add(this.dgvCounters);
			this.Name = "CounterEditor";
			this.Text = "Counter Editor";
			((System.ComponentModel.ISupportInitialize)(this.dgvCounters)).EndInit();
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.DataGridView dgvCounters;
		private System.Windows.Forms.Button btnOK;
		private System.Windows.Forms.Button btnCancel;
		private System.Windows.Forms.Button btnAddCounter;
		private System.Windows.Forms.Button btnRemoveCounter;
		private System.Windows.Forms.Button btnMoveUp;
		private System.Windows.Forms.Button btnMoveDown;
		private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
		private CalendarColumn calendarColumn1;
		private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
		private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
		private System.Windows.Forms.DataGridViewTextBoxColumn Index;
		private CalendarColumn TargetDate;
		private System.Windows.Forms.DataGridViewCheckBoxColumn Repeat;
		private System.Windows.Forms.DataGridViewComboBoxColumn RepeatInterval;
		private System.Windows.Forms.DataGridViewTextBoxColumn IntervalAmount;
		private System.Windows.Forms.DataGridViewTextBoxColumn Description;
		private System.Windows.Forms.CheckBox ckAlwaysOnTop;
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Interacx
United States United States
Blog: https://marcclifton.wordpress.com/
Home Page: http://www.marcclifton.com
Research: http://www.higherorderprogramming.com/
GitHub: https://github.com/cliftonm

All my life I have been passionate about architecture / software design, as this is the cornerstone to a maintainable and extensible application. As such, I have enjoyed exploring some crazy ideas and discovering that they are not so crazy after all. I also love writing about my ideas and seeing the community response. As a consultant, I've enjoyed working in a wide range of industries such as aerospace, boatyard management, remote sensing, emergency services / data management, and casino operations. I've done a variety of pro-bono work non-profit organizations related to nature conservancy, drug recovery and women's health.

Comments and Discussions