<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FGUI_Windows_Forms%2FImageList</id>
		<title>Csharp/CSharp Tutorial/GUI Windows Forms/ImageList - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FGUI_Windows_Forms%2FImageList"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/ImageList&amp;action=history"/>
		<updated>2026-04-30T01:18:38Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/ImageList&amp;diff=5363&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/ImageList&amp;diff=5363&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/ImageList&amp;diff=5364&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/ImageList&amp;diff=5364&amp;oldid=prev"/>
				<updated>2010-05-26T12:15:07Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Add Image in an ImageList to a Button==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
public class ImageLists : Form&lt;br /&gt;
{&lt;br /&gt;
  ImageList imgList;&lt;br /&gt;
  Label lbl;&lt;br /&gt;
  LinkLabel lnk;&lt;br /&gt;
  Button btn;&lt;br /&gt;
  public ImageLists()&lt;br /&gt;
  {&lt;br /&gt;
       Size = new Size(300,300);&lt;br /&gt;
    imgList = new ImageList();&lt;br /&gt;
    Image img;&lt;br /&gt;
    String[] arFiles = {&amp;quot;1.ico&amp;quot;,&amp;quot;2.ico&amp;quot;,&amp;quot;3.ico&amp;quot;};&lt;br /&gt;
&lt;br /&gt;
    for (int i = 0; i &amp;lt; arFiles.Length; i++)&lt;br /&gt;
    {&lt;br /&gt;
      img = Image.FromFile(arFiles[i]);&lt;br /&gt;
      imgList.Images.Add(img);&lt;br /&gt;
    }&lt;br /&gt;
    imgList.ImageSize = new Size(32, 32);&lt;br /&gt;
&lt;br /&gt;
    lbl = new Label();&lt;br /&gt;
       lbl.Parent = this;&lt;br /&gt;
       lbl.Text = &amp;quot;Label&amp;quot;;&lt;br /&gt;
       lbl.Location = new Point(0,0);&lt;br /&gt;
       lbl.Size = new Size(lbl.PreferredWidth + imgList.ImageSize.Width, &lt;br /&gt;
      imgList.ImageSize.Height + 10);&lt;br /&gt;
       lbl.BorderStyle = BorderStyle.Fixed3D;&lt;br /&gt;
    lbl.ImageList = imgList;&lt;br /&gt;
    lbl.ImageIndex = 0;&lt;br /&gt;
    lbl.ImageAlign = ContentAlignment.MiddleRight;&lt;br /&gt;
       int yDelta = lbl.Height + 10;&lt;br /&gt;
     &lt;br /&gt;
       lnk = new LinkLabel();&lt;br /&gt;
       lnk.Parent = this;&lt;br /&gt;
       lnk.Text = &amp;quot;LinkLabel&amp;quot;;&lt;br /&gt;
       lnk.Size = new Size(lnk.PreferredWidth + imgList.ImageSize.Width, &lt;br /&gt;
      imgList.ImageSize.Height + 10);&lt;br /&gt;
       lnk.Location = new Point(0, yDelta);&lt;br /&gt;
    lnk.ImageList = imgList;&lt;br /&gt;
    lnk.ImageIndex = 0;&lt;br /&gt;
    lnk.ImageAlign = ContentAlignment.MiddleRight;&lt;br /&gt;
    btn = new Button();&lt;br /&gt;
    btn.Parent = this;&lt;br /&gt;
    btn.ImageList = imgList;&lt;br /&gt;
    btn.ImageIndex = imgList.Images.Count - 1;&lt;br /&gt;
    btn.Location = new Point(0, 2 * yDelta);&lt;br /&gt;
    btn.Size = new Size(3 * imgList.ImageSize.Width, &lt;br /&gt;
              2 * imgList.ImageSize.Height);&lt;br /&gt;
&lt;br /&gt;
    lbl.ImageIndex = 1;&lt;br /&gt;
    lnk.ImageIndex = 0;&lt;br /&gt;
    btn.ImageIndex = 2;&lt;br /&gt;
  }&lt;br /&gt;
  static void Main() &lt;br /&gt;
  {&lt;br /&gt;
      Application.Run(new ImageLists());&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Replace an Image with another Image in an ImageList==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
public class ImageListImageReplace : Form&lt;br /&gt;
{&lt;br /&gt;
  ImageList imgList;&lt;br /&gt;
  Button btn;&lt;br /&gt;
  public ImageListImageReplace()&lt;br /&gt;
  {&lt;br /&gt;
       Size = new Size(300,300);&lt;br /&gt;
    imgList = new ImageList();&lt;br /&gt;
    Image img;&lt;br /&gt;
    String[] arFiles = {&amp;quot;1.ico&amp;quot;,&amp;quot;2.ico&amp;quot;,&amp;quot;3.ico&amp;quot;};&lt;br /&gt;
&lt;br /&gt;
    for (int i = 0; i &amp;lt; arFiles.Length; i++)&lt;br /&gt;
    {&lt;br /&gt;
      img = Image.FromFile(arFiles[i]);&lt;br /&gt;
      imgList.Images.Add(img);&lt;br /&gt;
    }&lt;br /&gt;
    imgList.ImageSize = new Size(32, 32);&lt;br /&gt;
    img = Image.FromFile(&amp;quot;4.ico&amp;quot;);&lt;br /&gt;
    imgList.Images[imgList.Images.Count - 1] = img;&lt;br /&gt;
    btn = new Button();&lt;br /&gt;
    btn.Parent = this;&lt;br /&gt;
    btn.ImageList = imgList;&lt;br /&gt;
    btn.ImageIndex = imgList.Images.Count - 1;&lt;br /&gt;
    btn.Location = new Point(0, 20);&lt;br /&gt;
    btn.Size = new Size(3 * imgList.ImageSize.Width, &lt;br /&gt;
              2 * imgList.ImageSize.Height);&lt;br /&gt;
    btn.ImageIndex = 2;&lt;br /&gt;
  }&lt;br /&gt;
  static void Main() &lt;br /&gt;
  {&lt;br /&gt;
      Application.Run(new ImageListImageReplace());&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>