<?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%2FC_Sharp%2FGUI_Windows_Form%2FTrack_Bar</id>
		<title>Csharp/C Sharp/GUI Windows Form/Track Bar - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FTrack_Bar"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Track_Bar&amp;action=history"/>
		<updated>2026-04-29T17:15:59Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Track_Bar&amp;diff=176&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Track_Bar&amp;diff=176&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:18Z</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/C_Sharp/GUI_Windows_Form/Track_Bar&amp;diff=177&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Track_Bar&amp;diff=177&amp;oldid=prev"/>
				<updated>2010-05-26T11:33:47Z</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;==Use TrackBar to control label color==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
  using System;&lt;br /&gt;
  using System.Drawing;&lt;br /&gt;
  using System.Collections;&lt;br /&gt;
  using System.ruponentModel;&lt;br /&gt;
  using System.Windows.Forms;&lt;br /&gt;
  using System.Data;&lt;br /&gt;
  public class TrackForm : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.Label label4;&lt;br /&gt;
    private System.Windows.Forms.Label label2;&lt;br /&gt;
    private System.Windows.Forms.TrackBar blueTrackBar;&lt;br /&gt;
    private System.Windows.Forms.Label label3;&lt;br /&gt;
    private System.Windows.Forms.TrackBar greenTrackBar;&lt;br /&gt;
    private System.Windows.Forms.TrackBar redTrackBar;&lt;br /&gt;
    private System.Windows.Forms.Label label1;&lt;br /&gt;
    private System.Windows.Forms.Panel panel1;&lt;br /&gt;
    private System.Windows.Forms.Label lblCurrColor;&lt;br /&gt;
    private System.Windows.Forms.PictureBox colorBox;&lt;br /&gt;
    public TrackForm()&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      CenterToScreen();         &lt;br /&gt;
  &lt;br /&gt;
      redTrackBar.Value = 0;&lt;br /&gt;
      greenTrackBar.Value = 0;&lt;br /&gt;
      blueTrackBar.Value = 0;&lt;br /&gt;
      UpdateColor();&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.label4 = new System.Windows.Forms.Label ();&lt;br /&gt;
      this.label1 = new System.Windows.Forms.Label ();&lt;br /&gt;
      this.label3 = new System.Windows.Forms.Label ();&lt;br /&gt;
      this.label2 = new System.Windows.Forms.Label ();&lt;br /&gt;
      this.panel1 = new System.Windows.Forms.Panel ();&lt;br /&gt;
      this.redTrackBar = new System.Windows.Forms.TrackBar ();&lt;br /&gt;
      this.greenTrackBar = new System.Windows.Forms.TrackBar ();&lt;br /&gt;
      this.colorBox = new System.Windows.Forms.PictureBox ();&lt;br /&gt;
      this.lblCurrColor = new System.Windows.Forms.Label ();&lt;br /&gt;
      this.blueTrackBar = new System.Windows.Forms.TrackBar ();&lt;br /&gt;
      redTrackBar.BeginInit ();&lt;br /&gt;
      greenTrackBar.BeginInit ();&lt;br /&gt;
      blueTrackBar.BeginInit ();&lt;br /&gt;
      label4.Location = new System.Drawing.Point (16, 88);&lt;br /&gt;
      label4.Text = &amp;quot;Pick your slider here:&amp;quot;;&lt;br /&gt;
      label4.Size = new System.Drawing.Size (240, 32);&lt;br /&gt;
      label4.Font = new System.Drawing.Font (&amp;quot;Microsoft Sans Serif&amp;quot;, 15);&lt;br /&gt;
      label4.TabIndex = 9;&lt;br /&gt;
      label1.Location = new System.Drawing.Point (24, 16);&lt;br /&gt;
      label1.Text = &amp;quot;Red:&amp;quot;;&lt;br /&gt;
      label1.Size = new System.Drawing.Size (88, 32);&lt;br /&gt;
      label1.Font = new System.Drawing.Font (&amp;quot;Arial&amp;quot;, 15);&lt;br /&gt;
      label1.TabIndex = 4;&lt;br /&gt;
      label3.Location = new System.Drawing.Point (24, 104);&lt;br /&gt;
      label3.Text = &amp;quot;Blue:&amp;quot;;&lt;br /&gt;
      label3.Size = new System.Drawing.Size (88, 32);&lt;br /&gt;
      label3.Font = new System.Drawing.Font (&amp;quot;Arial&amp;quot;, 15);&lt;br /&gt;
      label3.TabIndex = 6;&lt;br /&gt;
      label2.Location = new System.Drawing.Point (24, 64);&lt;br /&gt;
      label2.Text = &amp;quot;Green:&amp;quot;;&lt;br /&gt;
      label2.Size = new System.Drawing.Size (88, 32);&lt;br /&gt;
      label2.Font = new System.Drawing.Font (&amp;quot;Arial&amp;quot;, 15);&lt;br /&gt;
      label2.TabIndex = 5;&lt;br /&gt;
      panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;&lt;br /&gt;
      panel1.Location = new System.Drawing.Point (16, 120);&lt;br /&gt;
      panel1.Size = new System.Drawing.Size (384, 188);&lt;br /&gt;
      panel1.TabIndex = 8;&lt;br /&gt;
      panel1.AutoScroll = true;&lt;br /&gt;
      redTrackBar.TickFrequency = 5;&lt;br /&gt;
      redTrackBar.Location = new System.Drawing.Point (120, 16);&lt;br /&gt;
      redTrackBar.TabIndex = 2;&lt;br /&gt;
      redTrackBar.TickStyle = System.Windows.Forms.TickStyle.TopLeft;&lt;br /&gt;
      redTrackBar.Maximum = 255;&lt;br /&gt;
      redTrackBar.Size = new System.Drawing.Size (232, 42);&lt;br /&gt;
      redTrackBar.Scroll += new System.EventHandler (this.redTrackBar_Scroll);&lt;br /&gt;
      greenTrackBar.TickFrequency = 5;&lt;br /&gt;
      greenTrackBar.Location = new System.Drawing.Point (120, 56);&lt;br /&gt;
      greenTrackBar.TabIndex = 3;&lt;br /&gt;
      greenTrackBar.TickStyle = System.Windows.Forms.TickStyle.TopLeft;&lt;br /&gt;
      greenTrackBar.Maximum = 255;&lt;br /&gt;
      greenTrackBar.Size = new System.Drawing.Size (240, 42);&lt;br /&gt;
      greenTrackBar.Scroll += new System.EventHandler (this.greenTrackBar_Scroll);&lt;br /&gt;
      colorBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;&lt;br /&gt;
      colorBox.BackColor = System.Drawing.Color.Blue;&lt;br /&gt;
      colorBox.Location = new System.Drawing.Point (16, 16);&lt;br /&gt;
      colorBox.Size = new System.Drawing.Size (384, 56);&lt;br /&gt;
      colorBox.TabIndex = 0;&lt;br /&gt;
      colorBox.TabStop = false;&lt;br /&gt;
      lblCurrColor.Location = new System.Drawing.Point (16, 324);&lt;br /&gt;
      lblCurrColor.Text = &amp;quot;label4&amp;quot;;&lt;br /&gt;
      lblCurrColor.Size = new System.Drawing.Size (392, 40);&lt;br /&gt;
      lblCurrColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;&lt;br /&gt;
      lblCurrColor.Font = new System.Drawing.Font (&amp;quot;Microsoft Sans Serif&amp;quot;, 14);&lt;br /&gt;
      lblCurrColor.TabIndex = 7;&lt;br /&gt;
      blueTrackBar.TickFrequency = 5;&lt;br /&gt;
      blueTrackBar.Location = new System.Drawing.Point (120, 96);&lt;br /&gt;
      blueTrackBar.TabIndex = 1;&lt;br /&gt;
      blueTrackBar.TickStyle = System.Windows.Forms.TickStyle.TopLeft;&lt;br /&gt;
      blueTrackBar.Maximum = 255;&lt;br /&gt;
      blueTrackBar.Size = new System.Drawing.Size (240, 42);&lt;br /&gt;
      blueTrackBar.Scroll += new System.EventHandler (this.blueTrackBar_Scroll);&lt;br /&gt;
      this.Text = &amp;quot;Color Form&amp;quot;;&lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size (5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size (424, 385);&lt;br /&gt;
      panel1.Controls.Add (this.label2);&lt;br /&gt;
      panel1.Controls.Add (this.blueTrackBar);&lt;br /&gt;
      panel1.Controls.Add (this.label3);&lt;br /&gt;
      panel1.Controls.Add (this.greenTrackBar);&lt;br /&gt;
      panel1.Controls.Add (this.redTrackBar);&lt;br /&gt;
      panel1.Controls.Add (this.label1);&lt;br /&gt;
      this.Controls.Add (this.label4);&lt;br /&gt;
      this.Controls.Add (this.panel1);&lt;br /&gt;
      this.Controls.Add (this.lblCurrColor);&lt;br /&gt;
      this.Controls.Add (this.colorBox);&lt;br /&gt;
      redTrackBar.EndInit ();&lt;br /&gt;
      greenTrackBar.EndInit ();&lt;br /&gt;
      blueTrackBar.EndInit ();&lt;br /&gt;
    }&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new TrackForm());&lt;br /&gt;
    }&lt;br /&gt;
    protected void greenTrackBar_Scroll (object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      UpdateColor();&lt;br /&gt;
    }&lt;br /&gt;
    protected void redTrackBar_Scroll (object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      UpdateColor();&lt;br /&gt;
    }&lt;br /&gt;
    protected void blueTrackBar_Scroll (object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      UpdateColor();&lt;br /&gt;
    }&lt;br /&gt;
    private void UpdateColor()&lt;br /&gt;
    {&lt;br /&gt;
      Color c = Color.FromArgb(redTrackBar.Value, greenTrackBar.Value, blueTrackBar.Value);&lt;br /&gt;
      colorBox.BackColor = c;&lt;br /&gt;
      lblCurrColor.Text = &amp;quot;Current color is: &amp;quot; + &amp;quot;(&amp;quot; + &lt;br /&gt;
        redTrackBar.Value + &amp;quot;, &amp;quot; + &lt;br /&gt;
        greenTrackBar.Value + &amp;quot; ,&amp;quot; +  &lt;br /&gt;
        blueTrackBar.Value + &amp;quot;)&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>