Click here to Skip to main content
15,893,814 members
Articles / Multimedia / GDI+

Elliptical Rotating Picture Tray and Editor

Rate me:
Please Sign up or sign in to vote.
4.95/5 (19 votes)
31 Jan 2010CPOL12 min read 38.9K   1.5K   25  
A picture tray that rotates around an ellipse of flexible size and angle, with an editor for C#.
namespace testRotatingPictureTray
{
    partial class formTestRotatingPictureTray
    {
        /// <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.menuStrip = new System.Windows.Forms.MenuStrip();
            this.mnuFile = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuFile_AddImage = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuFile_Delete = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuFile_Clear = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuFile_Exit = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuEditor = new System.Windows.Forms.ToolStripMenuItem();
            this.menuStrip.SuspendLayout();
            this.SuspendLayout();
            // 
            // menuStrip
            // 
            this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.mnuFile,
            this.mnuEditor});
            this.menuStrip.Location = new System.Drawing.Point(0, 0);
            this.menuStrip.Name = "menuStrip";
            this.menuStrip.Size = new System.Drawing.Size(728, 24);
            this.menuStrip.TabIndex = 0;
            this.menuStrip.Text = "menuStrip1";
            // 
            // mnuFile
            // 
            this.mnuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.mnuFile_AddImage,
            this.mnuFile_Delete,
            this.mnuFile_Clear,
            this.mnuFile_Exit});
            this.mnuFile.Name = "mnuFile";
            this.mnuFile.Size = new System.Drawing.Size(37, 20);
            this.mnuFile.Text = "&File";
            // 
            // mnuFile_AddImage
            // 
            this.mnuFile_AddImage.Name = "mnuFile_AddImage";
            this.mnuFile_AddImage.Size = new System.Drawing.Size(195, 22);
            this.mnuFile_AddImage.Text = "&Add Image to tray";
            this.mnuFile_AddImage.Click += new System.EventHandler(this.mnuFile_AddImage_Click);
            // 
            // mnuFile_Delete
            // 
            this.mnuFile_Delete.Name = "mnuFile_Delete";
            this.mnuFile_Delete.Size = new System.Drawing.Size(195, 22);
            this.mnuFile_Delete.Text = "&Delete Image from tray";
            this.mnuFile_Delete.Click += new System.EventHandler(this.mnuFile_Delete_Click);
            // 
            // mnuFile_Clear
            // 
            this.mnuFile_Clear.Name = "mnuFile_Clear";
            this.mnuFile_Clear.Size = new System.Drawing.Size(195, 22);
            this.mnuFile_Clear.Text = "&Clear tray";
            this.mnuFile_Clear.Click += new System.EventHandler(this.mnuFile_Clear_Click);
            // 
            // mnuFile_Exit
            // 
            this.mnuFile_Exit.Name = "mnuFile_Exit";
            this.mnuFile_Exit.Size = new System.Drawing.Size(195, 22);
            this.mnuFile_Exit.Text = "E&xit";
            this.mnuFile_Exit.Click += new System.EventHandler(this.mnuFile_Exit_Click);
            // 
            // mnuEditor
            // 
            this.mnuEditor.Name = "mnuEditor";
            this.mnuEditor.Size = new System.Drawing.Size(50, 20);
            this.mnuEditor.Text = "Editor";
            this.mnuEditor.Click += new System.EventHandler(this.mnuEditor_Click);
            // 
            // formTestRotatingPictureTray
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(728, 510);
            this.Controls.Add(this.menuStrip);
            this.MainMenuStrip = this.menuStrip;
            this.Name = "formTestRotatingPictureTray";
            this.Text = "test Rotating Picture Tray";
            this.menuStrip.ResumeLayout(false);
            this.menuStrip.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.MenuStrip menuStrip;
        private System.Windows.Forms.ToolStripMenuItem mnuFile;
        private System.Windows.Forms.ToolStripMenuItem mnuFile_AddImage;
        private System.Windows.Forms.ToolStripMenuItem mnuFile_Delete;
        private System.Windows.Forms.ToolStripMenuItem mnuFile_Clear;
        private System.Windows.Forms.ToolStripMenuItem mnuFile_Exit;
        private System.Windows.Forms.ToolStripMenuItem mnuEditor;
    }
}

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 Code Project Open License (CPOL)


Written By
CEO unemployable
Canada Canada
Christ Kennedy grew up in the suburbs of Montreal and is a bilingual Quebecois with a bachelor’s degree in computer engineering from McGill University. He is unemployable and currently living in Moncton, N.B. writing his next novel.

Comments and Discussions