Click here to Skip to main content
15,886,362 members
Articles / Desktop Programming / Windows Forms

Crystal Image Toolkit: thumbnail image control and picture viewing.

Rate me:
Please Sign up or sign in to vote.
4.68/5 (21 votes)
11 May 2011LGPL37 min read 109.6K   8.3K   95  
Thumbnail and image viewing controls for Windows Forms, using C#.
namespace CrystalGradientPanelDemo
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (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.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.crystalPanel1 = new Attilan.Crystal.Controls.CrystalPanel();
            this.label5 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.splitContainer2 = new System.Windows.Forms.SplitContainer();
            this.crystalPanel2 = new Attilan.Crystal.Controls.CrystalPanel();
            this.label3 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.crystalPanel3 = new Attilan.Crystal.Controls.CrystalPanel();
            this.crystalLabel1 = new Attilan.Crystal.Controls.CrystalLabel();
            this.label4 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.crystalPanel1.SuspendLayout();
            this.splitContainer2.Panel1.SuspendLayout();
            this.splitContainer2.Panel2.SuspendLayout();
            this.splitContainer2.SuspendLayout();
            this.crystalPanel2.SuspendLayout();
            this.crystalPanel3.SuspendLayout();
            this.SuspendLayout();
            // 
            // splitContainer1
            // 
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.crystalPanel1);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
            this.splitContainer1.Size = new System.Drawing.Size(632, 446);
            this.splitContainer1.SplitterDistance = 210;
            this.splitContainer1.TabIndex = 0;
            // 
            // crystalPanel1
            // 
            this.crystalPanel1.Color1 = System.Drawing.Color.Azure;
            this.crystalPanel1.Color2 = System.Drawing.Color.SteelBlue;
            this.crystalPanel1.ColorAngle = 90F;
            this.crystalPanel1.Controls.Add(this.label5);
            this.crystalPanel1.Controls.Add(this.label1);
            this.crystalPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.crystalPanel1.Location = new System.Drawing.Point(0, 0);
            this.crystalPanel1.Name = "crystalPanel1";
            this.crystalPanel1.Size = new System.Drawing.Size(210, 446);
            this.crystalPanel1.TabIndex = 0;
            this.crystalPanel1.Text = "crystalPanel1";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.BackColor = System.Drawing.Color.Transparent;
            this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label5.Location = new System.Drawing.Point(47, 104);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(108, 13);
            this.label5.TabIndex = 0;
            this.label5.Text = "with CrystalPanel.";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.BackColor = System.Drawing.Color.Transparent;
            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.Location = new System.Drawing.Point(47, 79);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(122, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Spice up your Forms";
            // 
            // splitContainer2
            // 
            this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer2.Location = new System.Drawing.Point(0, 0);
            this.splitContainer2.Name = "splitContainer2";
            this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer2.Panel1
            // 
            this.splitContainer2.Panel1.Controls.Add(this.crystalPanel2);
            // 
            // splitContainer2.Panel2
            // 
            this.splitContainer2.Panel2.Controls.Add(this.crystalPanel3);
            this.splitContainer2.Size = new System.Drawing.Size(418, 446);
            this.splitContainer2.SplitterDistance = 195;
            this.splitContainer2.TabIndex = 0;
            // 
            // crystalPanel2
            // 
            this.crystalPanel2.Color1 = System.Drawing.Color.Moccasin;
            this.crystalPanel2.Color2 = System.Drawing.Color.OrangeRed;
            this.crystalPanel2.ColorAngle = 45F;
            this.crystalPanel2.Controls.Add(this.label6);
            this.crystalPanel2.Controls.Add(this.label3);
            this.crystalPanel2.Controls.Add(this.label2);
            this.crystalPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.crystalPanel2.Location = new System.Drawing.Point(0, 0);
            this.crystalPanel2.Name = "crystalPanel2";
            this.crystalPanel2.Size = new System.Drawing.Size(418, 195);
            this.crystalPanel2.TabIndex = 0;
            this.crystalPanel2.Text = "crystalPanel2";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.BackColor = System.Drawing.Color.Transparent;
            this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label3.Location = new System.Drawing.Point(46, 104);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(274, 13);
            this.label3.TabIndex = 0;
            this.label3.Text = "Set ColorAngle to determine Gradient direction.";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.BackColor = System.Drawing.Color.Transparent;
            this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label2.Location = new System.Drawing.Point(46, 79);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(260, 13);
            this.label2.TabIndex = 0;
            this.label2.Text = "Set Color1 and Color2 to your favorite blend.";
            // 
            // crystalPanel3
            // 
            this.crystalPanel3.Color1 = System.Drawing.Color.WhiteSmoke;
            this.crystalPanel3.Color2 = System.Drawing.Color.DimGray;
            this.crystalPanel3.ColorAngle = 90F;
            this.crystalPanel3.Controls.Add(this.crystalLabel1);
            this.crystalPanel3.Controls.Add(this.label4);
            this.crystalPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
            this.crystalPanel3.Location = new System.Drawing.Point(0, 0);
            this.crystalPanel3.Name = "crystalPanel3";
            this.crystalPanel3.Size = new System.Drawing.Size(418, 247);
            this.crystalPanel3.TabIndex = 0;
            this.crystalPanel3.Text = "crystalPanel3";
            // 
            // crystalLabel1
            // 
            this.crystalLabel1.Color1 = System.Drawing.Color.LightBlue;
            this.crystalLabel1.Color2 = System.Drawing.Color.SteelBlue;
            this.crystalLabel1.ColorAngle = 90F;
            this.crystalLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.crystalLabel1.ForeColor = System.Drawing.Color.White;
            this.crystalLabel1.Location = new System.Drawing.Point(30, 114);
            this.crystalLabel1.Name = "crystalLabel1";
            this.crystalLabel1.Size = new System.Drawing.Size(376, 16);
            this.crystalLabel1.TabIndex = 1;
            this.crystalLabel1.Text = "Or use CrystalLabel which has its own Gradient flavor.";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.BackColor = System.Drawing.Color.Transparent;
            this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label4.Location = new System.Drawing.Point(27, 77);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(296, 13);
            this.label4.TabIndex = 0;
            this.label4.Text = "When using Label, set background to Transparent.";
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.BackColor = System.Drawing.Color.Transparent;
            this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label6.Location = new System.Drawing.Point(46, 128);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(321, 13);
            this.label6.TabIndex = 0;
            this.label6.Text = "If your Panel scrolls, adjust the ColorAngle accordingly.";
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(632, 446);
            this.Controls.Add(this.splitContainer1);
            this.Name = "Form1";
            this.ShowInTaskbar = false;
            this.Text = "Crystal (Gradient) Panel Demo";
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.ResumeLayout(false);
            this.crystalPanel1.ResumeLayout(false);
            this.crystalPanel1.PerformLayout();
            this.splitContainer2.Panel1.ResumeLayout(false);
            this.splitContainer2.Panel2.ResumeLayout(false);
            this.splitContainer2.ResumeLayout(false);
            this.crystalPanel2.ResumeLayout(false);
            this.crystalPanel2.PerformLayout();
            this.crystalPanel3.ResumeLayout(false);
            this.crystalPanel3.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.SplitContainer splitContainer1;
        private System.Windows.Forms.SplitContainer splitContainer2;
        private Attilan.Crystal.Controls.CrystalPanel crystalPanel1;
        private System.Windows.Forms.Label label1;
        private Attilan.Crystal.Controls.CrystalPanel crystalPanel2;
        private System.Windows.Forms.Label label2;
        private Attilan.Crystal.Controls.CrystalPanel crystalPanel3;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label3;
        private Attilan.Crystal.Controls.CrystalLabel crystalLabel1;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label6;
    }
}

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 GNU Lesser General Public License (LGPLv3)


Written By
Software Developer (Senior)
United States United States
Richard has been working with Windows software since 1991. He has worked for Borland, Microsoft, Oracle, and various startup companies such as Livescribe. Currently he is developing projects in C#, Windows Forms, and Net Framework. Visit his blog Attilan (www.attilan.com) to learn more about his tools, projects and discoveries.

Comments and Discussions