Click here to Skip to main content
15,886,362 members
Articles / Programming Languages / C#

A Windows Explorer in a user control

Rate me:
Please Sign up or sign in to vote.
4.85/5 (84 votes)
15 Mar 20075 min read 446.9K   20.3K   250  
Functionality of Windows Explorer in a user control using C#
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace TestExplorer
{
	/// <summary>
	/// Summary description for withoutbars.
	/// </summary>
	public class withoutbars : System.Windows.Forms.Form
	{
		private WindowsExplorer.ExplorerTree explorerTree1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public withoutbars()
		{
			//
			// 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.explorerTree1 = new WindowsExplorer.ExplorerTree();
			this.SuspendLayout();
			// 
			// explorerTree1
			// 
			this.explorerTree1.BackColor = System.Drawing.Color.White;
			this.explorerTree1.Location = new System.Drawing.Point(16, 16);
			this.explorerTree1.Name = "explorerTree1";
			this.explorerTree1.SelectedPath = "C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\IDE";
			this.explorerTree1.ShowAddressbar = false;
			this.explorerTree1.ShowMyDocuments = true;
			this.explorerTree1.ShowMyFavorites = true;
			this.explorerTree1.ShowMyNetwork = true;
			this.explorerTree1.ShowToolbar = false;
			this.explorerTree1.Size = new System.Drawing.Size(240, 224);
			this.explorerTree1.TabIndex = 0;
			// 
			// withoutbars
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(312, 278);
			this.Controls.Add(this.explorerTree1);
			this.Name = "withoutbars";
			this.Text = "Form 2";
			this.ResumeLayout(false);

		}
		#endregion
	}
}

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Founder Teamcal AI
United States United States

Comments and Discussions