Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C++ / CLI » General » Downloads
 
Add your own
alternative version

Intelligent Screen Saver

, 15 Aug 2007 CPOL
A utility to control screen saver on your computer using computer vision (human face detection), rather than idle timer.
intelligentsaver.zip
intelligentsaver2.zip
IntelligentSaver.suo
DxCam
dshow
Core
DxCam.csproj.user
DxCam.suo
Gui
VideoSource
FaceDetection
App.ico
FaceDetection.GUI.csproj.user
FaceDetection.suo
FaceDetectionWrapper
app.ico
release.zip
Release
cv099.dll
cxcore099.dll
DxCam.dll
FaceDetection.exe
FaceDetection.Wrapper.dll
libguide40.dll
Tiger.Video.VFW.dll
requiredbinaries.zip
References
Tiger.Video.VFW.dll
Cascades
OpenCV
cv099.dll
cxcore099.dll
libguide40.dll
vs2005.zip
VS2005
DxCam
dshow
Core
DxCam.csproj.user
DxCam.suo
Gui
VideoSource
FaceDetection
App.ico
FaceDetection.GUI.csproj.user
FaceDetection.suo
FaceDetectionWrapper
app.ico
Bayesian_ML_DLL.vcproj.Z.Zeeshan.user
IntelligentSaver.suo
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace Gui
{
	/// <summary>
	/// Summary description for MMSForm.
	/// </summary>
	internal class MMSForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button cancelButton;
		private System.Windows.Forms.Button okButton;
		private System.Windows.Forms.ComboBox urlCombo;
		private System.Windows.Forms.Label label1;

		private string url;

		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		// URL property
		internal string URL
		{
			get { return url; }
		}

		// Constructor
		internal MMSForm()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(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.cancelButton = new System.Windows.Forms.Button();
			this.okButton = new System.Windows.Forms.Button();
			this.urlCombo = new System.Windows.Forms.ComboBox();
			this.label1 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// cancelButton
			// 
			this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.cancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.cancelButton.Location = new System.Drawing.Point(180, 78);
			this.cancelButton.Name = "cancelButton";
			this.cancelButton.TabIndex = 7;
			this.cancelButton.Text = "Cancel";
			// 
			// okButton
			// 
			this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.okButton.Location = new System.Drawing.Point(90, 78);
			this.okButton.Name = "okButton";
			this.okButton.TabIndex = 6;
			this.okButton.Text = "Ok";
			this.okButton.Click += new System.EventHandler(this.okButton_Click);
			// 
			// urlCombo
			// 
			this.urlCombo.Items.AddRange(new object[] {
														  "mms://195.2.119.71/webcam1"});
			this.urlCombo.Location = new System.Drawing.Point(10, 30);
			this.urlCombo.Name = "urlCombo";
			this.urlCombo.Size = new System.Drawing.Size(325, 21);
			this.urlCombo.TabIndex = 5;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(10, 10);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(332, 19);
			this.label1.TabIndex = 4;
			this.label1.Text = "Enter URL of MMS stream (Microsoft Media Services):";
			// 
			// MMSForm
			// 
			this.AcceptButton = this.okButton;
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.CancelButton = this.cancelButton;
			this.ClientSize = new System.Drawing.Size(344, 113);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.cancelButton,
																		  this.okButton,
																		  this.urlCombo,
																		  this.label1});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "MMSForm";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Open MMS Stream";
			this.ResumeLayout(false);

		}
		#endregion

		// On "Ok" button
		private void okButton_Click(object sender, System.EventArgs e)
		{
			url = urlCombo.Text;
		}
	}
}

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)

Share

About the Author

Zeeshan Ejaz Bhatti
Web Developer
Pakistan Pakistan
BCSE - Software Engineering (2000 - 2004)
Foundation University Institute of Management and Computer Sciences.
Pakistan.
 
MS - Computer Sciences (2004 - 2005)
Lahore Univeristy of Management Sciences
Pakistan.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.1411023.1 | Last Updated 15 Aug 2007
Article Copyright 2007 by Zeeshan Ejaz Bhatti
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid