Click here to Skip to main content
15,897,187 members
Articles / Programming Languages / C#

Quick and dirty directory copy

Rate me:
Please Sign up or sign in to vote.
2.81/5 (9 votes)
17 Jan 2006CPOL2 min read 71.9K   1.6K   28  
Quick directory copy to another directory.
// StatusBarProgressPanel control
// 2005 Mark Harmon
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace WinCopy
{
	public class StatusBarProgressPanel : StatusBarPanel
	{
		private bool isAdded = false;
		private ProgressBar progressBar = new ProgressBar();
		[Category("Progress")]
		public ProgressBar ProgressBar
		{
			get { return progressBar; }
		}

		public StatusBarProgressPanel() : base()
		{
			// Just to be safe
			this.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
		}

		public void ParentDrawItemHandler(object sender, StatusBarDrawItemEventArgs sbdevent)
		{
			// Only add this once to the parent's control container
			if (isAdded == false)
			{
				this.Parent.Controls.Add(this.progressBar);
				this.isAdded = true;
			}

			// Get the bounds of this panel and copy to the progress bar's bounds
			if (sbdevent.Panel == this)
				progressBar.Bounds = sbdevent.Bounds;
		}
	}
}

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
Team Leader ArabicRobotics.com
Egypt Egypt
Tareq Gamal El-din Mohammed,
---------
Website:
www.ArabicRobotics.com

---------

Graduated from Modern Academy for Computer science and Information Technology. Egypt,
Then flow Microsoft development track Certificates:
MCAD.NET (Microsoft Certified Application Developer)
MCSD.NET (Microsoft Certified Solution Developer)
Microsoft SharePoint Administration, Configuration and Development.

Robotics fields was a Hobby since 2002,
started to develop some applications for "Robosapien", "RoboSapienV2", "RS Media", RoboMe and WowWee Rovio. from WowWee company,

Started working with robots as a professional way at 2014
By using "NAOqi" Robotics from Aldebaran.

By developing some applications and libraries like :
NAO.NET.
https://www.youtube.com/watch?v=oOyy-2XyT-c

OpenCV with NAO Robot:

- NAORobot Vision using OpenCV -TotaRobot P1
https://www.youtube.com/watch?v=MUcj8463x08

- NAO Robot Vision using OpenCV - P2
https://www.youtube.com/watch?v=93k1usaS-QM

NAO Alarm Clock :
https://www.youtube.com/watch?v=djLlMeGLqOU
-----------------------------

also Robotic Arm Project:


Other Projects Developed by Tareq Gamal El-din Mohammed :

Developed and posted some applications in Code Project web site like :

- Control your Distributed Application using Windows and Web Service
http://www.codeproject.com/Articles/101895/Control-your-Distributed-Application-using-Windows


- Quick and dirty directory copy
http://www.codeproject.com/Articles/12745/Quick-and-dirty-directory-copy

- Program Execute Timer(From the Web)
http://www.codeproject.com/Articles/12743/Program-Executer-Timer

Comments and Discussions