当前位置: 首页>>代码示例>>C#>>正文


C# Forms.ImageList类代码示例

本文整理汇总了C#中System.Windows.Forms.ImageList的典型用法代码示例。如果您正苦于以下问题:C# System.Windows.Forms.ImageList类的具体用法?C# System.Windows.Forms.ImageList怎么用?C# System.Windows.Forms.ImageList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


System.Windows.Forms.ImageList类属于命名空间,在下文中一共展示了System.Windows.Forms.ImageList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitializeComponent

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(KmlTreeView));
            this.imageList1 = new System.Windows.Forms.ImageList(this.components);
            this.SuspendLayout();
            // 
            // imageList1
            // 
            this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
            this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "ge");
            this.imageList1.Images.SetKeyName(1, "kml");
            this.imageList1.Images.SetKeyName(2, "flag");
            this.imageList1.Images.SetKeyName(3, "overlay");
            this.imageList1.Images.SetKeyName(4, "photo");
            this.imageList1.Images.SetKeyName(5, "tour");
            this.imageList1.Images.SetKeyName(6, "folderClosed");
            this.imageList1.Images.SetKeyName(7, "folderOpen");
            this.imageList1.Images.SetKeyName(8, "linkFolderClosed");
            this.imageList1.Images.SetKeyName(9, "linkFolderOpen");
            this.imageList1.Images.SetKeyName(10, "linkFolderClosed_0");
            this.imageList1.Images.SetKeyName(11, "linkFolderClosed_1");
            this.imageList1.Images.SetKeyName(12, "linkFolderClosed_2");
            this.imageList1.Images.SetKeyName(13, "linkFolderClosedDisconected");
            // 
            // KmlTreeView
            // 
            this.ImageKey = "ge";
            this.ImageList = this.imageList1;
            this.SelectedImageIndex = 0;
            this.ResumeLayout(false);

        }
开发者ID:NpoSaut,项目名称:netTrackRider,代码行数:38,代码来源:KmlTreeView.Designer.cs

示例2: InitializeComponent

 /// <summary> 
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EMapObject));
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.SuspendLayout();
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "a1.png");
     this.imageList1.Images.SetKeyName(1, "a2.png");
     this.imageList1.Images.SetKeyName(2, "a3.png");
     this.imageList1.Images.SetKeyName(3, "a4.png");
     this.imageList1.Images.SetKeyName(4, "b1.png");
     this.imageList1.Images.SetKeyName(5, "b4.png");
     this.imageList1.Images.SetKeyName(6, "b2.png");
     this.imageList1.Images.SetKeyName(7, "b3.png");
     this.imageList1.Images.SetKeyName(8, "b5.png");
     this.imageList1.Images.SetKeyName(9, "b6.png");
     this.imageList1.Images.SetKeyName(10, "b9.png");
     this.imageList1.Images.SetKeyName(11, "b10.png");
     //
     // EMapObject
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Name = "EMapObject";
     this.Size = new System.Drawing.Size(24, 24);
     this.ResumeLayout(false);
 }
开发者ID:dalinhuang,项目名称:videospstandalonenew,代码行数:35,代码来源:EMapObject.designer.cs

示例3: InitializeComponent

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PickEntryStep));
            this.treeView = new System.Windows.Forms.TreeView();
            this.treeImages = new System.Windows.Forms.ImageList(this.components);
            this.SuspendLayout();
            // 
            // treeView
            // 
            resources.ApplyResources(this.treeView, "treeView");
            this.treeView.FullRowSelect = true;
            this.treeView.HideSelection = false;
            this.treeView.ImageList = this.treeImages;
            this.treeView.Name = "treeView";
            this.treeView.DoubleClick += new System.EventHandler(this.TreeView_DoubleClick);
            // 
            // treeImages
            // 
            this.treeImages.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
            resources.ApplyResources(this.treeImages, "treeImages");
            this.treeImages.TransparentColor = System.Drawing.Color.Transparent;
            // 
            // PickEntryStep
            // 
            resources.ApplyResources(this, "$this");
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Transparent;
            this.Controls.Add(this.treeView);
            this.Name = "PickEntryStep";
            this.Tag = "Double click on the file in the directory tree below to be the entry point for yo" +
                "ur application.  This should be an executable.";
            this.ResumeLayout(false);

        }
开发者ID:Jeremiahf,项目名称:wix3,代码行数:39,代码来源:PickEntryStep.Designer.cs

示例4: GetImage

		private System.Drawing.Image GetImage(System.ComponentModel.ITypeDescriptorContext context,int index)
		{
			if(m_ImageList!=null && index>=0 && index<=m_ImageList.Images.Count)
			{
				return m_ImageList.Images[index];
			}
			if(context==null)
				return null;

			object o=context.Instance;
			if(o==null)
				return null;
			System.ComponentModel.PropertyDescriptorCollection pd=System.ComponentModel.TypeDescriptor.GetProperties(o);
			if(pd==null)
				return null;

			foreach(System.ComponentModel.PropertyDescriptor prop in pd)
			{
				if(prop.PropertyType==typeof(System.Windows.Forms.ImageList))
				{
					m_ImageList=prop.GetValue(o) as System.Windows.Forms.ImageList;
					if(m_ImageList!=null && index>=0 && index<=m_ImageList.Images.Count)
					{
						return m_ImageList.Images[index];
					}
					break;
				}
			}
			return null;
		}
开发者ID:huamanhtuyen,项目名称:VNACCS,代码行数:30,代码来源:ImageIndexEditor.cs

示例5: TriStateTreeView

		// <summary>
		// Constructor.  Create and populate an image list
		// </summary>
		public TriStateTreeView() : base()
		{
			StateImageList = new System.Windows.Forms.ImageList();

			// populate the image list, using images from the System.Windows.Forms.CheckBoxRenderer class
			for (int i = 0; i < 3; i++)
			{
				// Create a bitmap which holds the relevent check box style
				// see http://msdn.microsoft.com/en-us/library/ms404307.aspx and http://msdn.microsoft.com/en-us/library/system.windows.forms.checkboxrenderer.aspx

				System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(16, 16);
				System.Drawing.Graphics chkGraphics = System.Drawing.Graphics.FromImage(bmp);
				switch ( i )
				{
					// 0,1 - offset the checkbox slightly so it positions in the correct place
					case 0:
						System.Windows.Forms.CheckBoxRenderer.DrawCheckBox(chkGraphics, new System.Drawing.Point(0, 1), System.Windows.Forms.VisualStyles.CheckBoxState.UncheckedNormal);
						break;
					case 1:
						System.Windows.Forms.CheckBoxRenderer.DrawCheckBox(chkGraphics, new System.Drawing.Point(0, 1), System.Windows.Forms.VisualStyles.CheckBoxState.CheckedNormal);
						break;
					case 2:
						System.Windows.Forms.CheckBoxRenderer.DrawCheckBox(chkGraphics, new System.Drawing.Point(0, 1), System.Windows.Forms.VisualStyles.CheckBoxState.MixedNormal);
						break;
				}

				StateImageList.Images.Add(bmp);
			}
		}
开发者ID:Fucmeo,项目名称:ou-qlns,代码行数:32,代码来源:TriStateTreeView.cs

示例6: InitializeComponent

 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SplitButton));
     this.SplitButtonDropDown = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.SplitButtonImages = new System.Windows.Forms.ImageList(this.components);
     this.SuspendLayout();
     //
     // SplitButtonDropDown
     //
     this.SplitButtonDropDown.Name = "SplitButtonDropDown";
     this.SplitButtonDropDown.Size = new System.Drawing.Size(61, 4);
     this.SplitButtonDropDown.Closed += new System.Windows.Forms.ToolStripDropDownClosedEventHandler(this.SplitButtonDropDownClosed);
     this.SplitButtonDropDown.Opening += new System.ComponentModel.CancelEventHandler(this.SplitButtonDropDownOpening);
     this.SplitButtonDropDown.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.SplitButtonDropDownItemClicked);
     //
     // SplitButtonImages
     //
     this.SplitButtonImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("SplitButtonImages.ImageStream")));
     this.SplitButtonImages.TransparentColor = System.Drawing.Color.Transparent;
     this.SplitButtonImages.Images.SetKeyName(0, "Normal");
     this.SplitButtonImages.Images.SetKeyName(1, "Hover");
     this.SplitButtonImages.Images.SetKeyName(2, "Clicked");
     this.SplitButtonImages.Images.SetKeyName(3, "Disabled");
     //
     // SplitButton
     //
     this.ContextMenuStrip = this.SplitButtonDropDown;
     this.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.ImageKey = "Normal";
     this.ImageList = this.SplitButtonImages;
     this.ResumeLayout(false);
 }
开发者ID:Dason1986,项目名称:Lib,代码行数:37,代码来源:SplitButton.designer.cs

示例7: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MsgBoxVN));
     this.imgList = new System.Windows.Forms.ImageList(this.components);
     this.SuspendLayout();
     //
     // imgList
     //
     this.imgList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgList.ImageStream")));
     this.imgList.TransparentColor = System.Drawing.Color.Transparent;
     this.imgList.Images.SetKeyName(0, "");
     this.imgList.Images.SetKeyName(1, "");
     this.imgList.Images.SetKeyName(2, "");
     this.imgList.Images.SetKeyName(3, "");
     //
     // MsgBoxVN
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(331, 115);
     this.ControlBox = false;
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "MsgBoxVN";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Message";
     this.Paint += new System.Windows.Forms.PaintEventHandler(this.MsgBoxVN_Paint);
     this.Shown += new System.EventHandler(this.MsgBoxVN_Shown);
     this.ResumeLayout(false);
 }
开发者ID:huutruongqnvn,项目名称:vnecoo01,代码行数:38,代码来源:MsgBox.designer.cs

示例8: InitializeComponent

		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SolutionPickerControl));
			this.treeIcons = new System.Windows.Forms.ImageList(this.components);
			this.solutionTree = new System.Windows.Forms.TreeView();
			this.SuspendLayout();
			// 
			// treeIcons
			// 
			this.treeIcons.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
			resources.ApplyResources(this.treeIcons, "treeIcons");
			this.treeIcons.TransparentColor = System.Drawing.Color.Magenta;
			// 
			// solutionTree
			// 
			resources.ApplyResources(this.solutionTree, "solutionTree");
			this.solutionTree.ImageList = this.treeIcons;
			this.solutionTree.Name = "solutionTree";
			this.solutionTree.Sorted = true;
			this.solutionTree.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.OnBeforeExpand);
			this.solutionTree.DoubleClick += new System.EventHandler(this.OnSelect);
			// 
			// SolutionPickerControl
			// 
			resources.ApplyResources(this, "$this");
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.solutionTree);
			this.Name = "SolutionPickerControl";
			this.ResumeLayout(false);

		}
开发者ID:Phidiax,项目名称:open-wssf-2015,代码行数:36,代码来源:SolutionPickerControl.designer.cs

示例9: TButton

        public TButton()
            : base()
        {

            Point[] pts = {   new Point(0, _buttonsize / 2 - 1), 
                              new Point(_buttonsize / 2 - 1, 0), 
                              new Point(_buttonsize , _buttonsize / 2 - 1), 
                              new Point(_buttonsize , _buttonsize / 2 + 2),
                              new Point(_buttonsize / 2 + 2, _buttonsize - 1),
                              new Point(_buttonsize / 2 - 1, _buttonsize - 1) };

            GraphicsPath p = new GraphicsPath();
            p.AddPolygon(pts);
            p.CloseFigure();
            p.FillMode = FillMode.Alternate;
            this.Region = new Region(p);

            ImageList = new System.Windows.Forms.ImageList();
            ImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
            ImageList.ImageSize = new System.Drawing.Size(_buttonsize, _buttonsize);


            ImageList.Images.Add(((System.Drawing.Image)(Resource1.ResourceManager.GetObject("diamond1"))));
            ImageList.Images.Add(((System.Drawing.Image)(Resource1.ResourceManager.GetObject("diamond1_down"))));
            ImageIndex = 0;

        }
开发者ID:PKAstro,项目名称:Ascom.Gemini.Telescope,代码行数:27,代码来源:TButton.cs

示例10: InitializeComponent

 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EFDevGrid));
     this.imageListGridPageBar = new System.Windows.Forms.ImageList(this.components);
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     this.SuspendLayout();
     //
     // imageListGridPageBar
     //
     this.imageListGridPageBar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListGridPageBar.ImageStream")));
     this.imageListGridPageBar.TransparentColor = System.Drawing.Color.Transparent;
     this.imageListGridPageBar.Images.SetKeyName(0, "first.ico");
     this.imageListGridPageBar.Images.SetKeyName(1, "pre.png");
     this.imageListGridPageBar.Images.SetKeyName(2, "next.png");
     this.imageListGridPageBar.Images.SetKeyName(3, "last.ico");
     this.imageListGridPageBar.Images.SetKeyName(4, "Filter.png");
     this.imageListGridPageBar.Images.SetKeyName(5, "branch_element.png");
     this.imageListGridPageBar.Images.SetKeyName(6, "export1.ico");
     this.imageListGridPageBar.Images.SetKeyName(7, "refresh.png");
     this.imageListGridPageBar.Images.SetKeyName(8, "window_split_ver.ico");
     this.imageListGridPageBar.Images.SetKeyName(9, "add2.png");
     this.imageListGridPageBar.Images.SetKeyName(10, "delete2.png");
     this.imageListGridPageBar.Images.SetKeyName(11, "copynew.ico");
     this.imageListGridPageBar.Images.SetKeyName(12, "goto.ico");
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     this.ResumeLayout(false);
 }
开发者ID:sunpander,项目名称:VSDT,代码行数:32,代码来源:EFDevGrid.designer.cs

示例11: InitializeComponent

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Windows.Forms.ImageList imageList;
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ModelErrorDisplayFilterForm));
			this.virtualTreeControl = new ORMSolutions.ORMArchitect.Framework.Shell.StandardVirtualTreeControl();
			this.btnOK = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			imageList = new System.Windows.Forms.ImageList(this.components);
			this.SuspendLayout();
			// 
			// imageList
			// 
			imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
			resources.ApplyResources(imageList, "imageList");
			imageList.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// virtualTreeControl
			// 
			resources.ApplyResources(this.virtualTreeControl, "virtualTreeControl");
			this.virtualTreeControl.ImageList = imageList;
			this.virtualTreeControl.Name = "virtualTreeControl";
			this.virtualTreeControl.StandardCheckBoxes = true;
			// 
			// btnOK
			// 
			resources.ApplyResources(this.btnOK, "btnOK");
			this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.btnOK.Name = "btnOK";
			this.btnOK.UseVisualStyleBackColor = true;
			this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
			// 
			// btnCancel
			// 
			resources.ApplyResources(this.btnCancel, "btnCancel");
			this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.UseVisualStyleBackColor = true;
			// 
			// ModelErrorDisplayFilterForm
			// 
			this.AcceptButton = this.btnOK;
			resources.ApplyResources(this, "$this");
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.AutoValidate = System.Windows.Forms.AutoValidate.Disable;
			this.CancelButton = this.btnCancel;
			this.Controls.Add(this.btnCancel);
			this.Controls.Add(this.btnOK);
			this.Controls.Add(this.virtualTreeControl);
			this.MinimizeBox = false;
			this.Name = "ModelErrorDisplayFilterForm";
			this.ShowIcon = false;
			this.ResumeLayout(false);

		}
开发者ID:cjheath,项目名称:NORMA,代码行数:59,代码来源:ModelErrorDisplayFilterForm.Designer.cs

示例12: GetColorList

 //public static int Unknown = 3;
 public static System.Windows.Forms.ImageList GetColorList()
 {
     System.Windows.Forms.ImageList myImageList = new System.Windows.Forms.ImageList();
     myImageList.Images.Add(Properties.Resources.Default.ToBitmap());
     myImageList.Images.Add(Properties.Resources.DefaultSelect.ToBitmap());
     myImageList.Images.Add(Properties.Resources.Passed.ToBitmap());
     myImageList.Images.Add(Properties.Resources.PassedSelect.ToBitmap());
     myImageList.Images.Add(Properties.Resources.Failed.ToBitmap());
     myImageList.Images.Add(Properties.Resources.FailedSelect.ToBitmap());
     return myImageList;
 }
开发者ID:MarMar,项目名称:SeeFlaw,代码行数:12,代码来源:TestNode.cs

示例13: InitializeComponent

 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("商品B", 0);
     System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("商品A", 1);
     System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("商品C", 2);
     System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("商品D", 3);
     System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("商品E", 4);
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_Main));
     this.listView1 = new System.Windows.Forms.ListView();
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.SuspendLayout();
     //
     // listView1
     //
     this.listView1.AllowDrop = true;
     this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
     listViewItem1,
     listViewItem2,
     listViewItem3,
     listViewItem4,
     listViewItem5});
     this.listView1.LargeImageList = this.imageList1;
     this.listView1.Location = new System.Drawing.Point(1, -1);
     this.listView1.Name = "listView1";
     this.listView1.Size = new System.Drawing.Size(301, 180);
     this.listView1.TabIndex = 0;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.DragDrop += new System.Windows.Forms.DragEventHandler(this.listView1_DragDrop);
     this.listView1.DragEnter += new System.Windows.Forms.DragEventHandler(this.listView1_DragEnter);
     this.listView1.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.listView1_ItemDrag);
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "1.bmp");
     this.imageList1.Images.SetKeyName(1, "2.bmp");
     this.imageList1.Images.SetKeyName(2, "3.bmp");
     this.imageList1.Images.SetKeyName(3, "4.bmp");
     this.imageList1.Images.SetKeyName(4, "5.bmp");
     //
     // Frm_Main
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(303, 179);
     this.Controls.Add(this.listView1);
     this.Name = "Frm_Main";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "在列表视图中拖动视图项";
     this.ResumeLayout(false);
 }
开发者ID:TGHGH,项目名称:C-1200,代码行数:57,代码来源:Frm_Main.designer.cs

示例14: InitializeComponent

 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_Main));
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.timer1 = new System.Windows.Forms.Timer(this.components);
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "1.jpg");
     this.imageList1.Images.SetKeyName(1, "2.jpg");
     this.imageList1.Images.SetKeyName(2, "3.jpg");
     this.imageList1.Images.SetKeyName(3, "4.jpg");
     this.imageList1.Images.SetKeyName(4, "5.jpg");
     //
     // timer1
     //
     this.timer1.Interval = 1000;
     this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
     //
     // pictureBox1
     //
     this.pictureBox1.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.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.pictureBox1.Location = new System.Drawing.Point(104, 59);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new System.Drawing.Size(111, 111);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.pictureBox1.TabIndex = 0;
     this.pictureBox1.TabStop = false;
     //
     // Frm_Main
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(315, 218);
     this.Controls.Add(this.pictureBox1);
     this.Name = "Frm_Main";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "使用ImageList组件制作动画图形";
     this.Load += new System.EventHandler(this.Form2_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
 }
开发者ID:TGHGH,项目名称:C-1200,代码行数:56,代码来源:Frm_Main.designer.cs

示例15: InitializeComponent

 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DivisionTree));
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "category.png");
     this.imageList1.Images.SetKeyName(1, "customer.png");
 }
开发者ID:ljh198275823,项目名称:516-ZhinengChaoBiao,代码行数:17,代码来源:DivisionTree.designer.cs


注:本文中的System.Windows.Forms.ImageList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。