WindowsXP controls : ComboBox « GUI Windows Form « C# / C Sharp

C# / C Sharp
1. 2D Graphics
2. Class Interface
3. Collections Data Structure
4. Components
5. Data Types
6. Database ADO.net
7. Design Patterns
8. Development Class
9. Event
10. File Stream
11. Generics
12. GUI Windows Form
13. Language Basics
14. LINQ
15. Network
16. Office
17. Reflection
18. Regular Expressions
19. Security
20. Services Event
21. Thread
22. Web Services
23. Windows
24. XML
25. XML LINQ
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
C# / C Sharp » GUI Windows Form » ComboBoxScreenshots 
WindowsXP controls
WindowsXP controls

/*
User Interfaces in C#: Windows Forms and Custom Controls
by Matthew MacDonald

Publisher: Apress
ISBN: 1590590457
*/

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace WindowsXP
{
    /// <summary>
    /// Summary description for WindowsXP.
    /// </summary>
    public class WindowsXP : System.Windows.Forms.Form
    {
        internal System.Windows.Forms.HScrollBar HScrollBar1;
        internal System.Windows.Forms.ProgressBar ProgressBar1;
        internal System.Windows.Forms.TrackBar TrackBar1;
        internal System.Windows.Forms.ComboBox ComboBox1;
        internal System.Windows.Forms.RadioButton RadioButton1;
        internal System.Windows.Forms.CheckBox CheckBox1;
        internal System.Windows.Forms.Button Button1;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.Container components = null;

        public WindowsXP()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Disposebool disposing )
        {
            ifdisposing )
            {
                if (components != null
                {
                    components.Dispose();
                }
            }
            base.Disposedisposing );
        }

        #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.HScrollBar1 = new System.Windows.Forms.HScrollBar();
            this.ProgressBar1 = new System.Windows.Forms.ProgressBar();
            this.TrackBar1 = new System.Windows.Forms.TrackBar();
            this.ComboBox1 = new System.Windows.Forms.ComboBox();
            this.RadioButton1 = new System.Windows.Forms.RadioButton();
            this.CheckBox1 = new System.Windows.Forms.CheckBox();
            this.Button1 = new System.Windows.Forms.Button();
            ((System.ComponentModel.ISupportInitialize)(this.TrackBar1)).BeginInit();
            this.SuspendLayout();
            // 
            // HScrollBar1
            // 
            this.HScrollBar1.Location = new System.Drawing.Point(24256);
            this.HScrollBar1.Name = "HScrollBar1";
            this.HScrollBar1.Size = new System.Drawing.Size(24020);
            this.HScrollBar1.TabIndex = 15;
            // 
            // ProgressBar1
            // 
            this.ProgressBar1.Location = new System.Drawing.Point(24216);
            this.ProgressBar1.Name = "ProgressBar1";
            this.ProgressBar1.Size = new System.Drawing.Size(12823);
            this.ProgressBar1.TabIndex = 14;
            this.ProgressBar1.Value = 30;
            // 
            // TrackBar1
            // 
            this.TrackBar1.Location = new System.Drawing.Point(16152);
            this.TrackBar1.Name = "TrackBar1";
            this.TrackBar1.Size = new System.Drawing.Size(16445);
            this.TrackBar1.TabIndex = 13;
            // 
            // ComboBox1
            // 
            this.ComboBox1.Location = new System.Drawing.Point(24116);
            this.ComboBox1.Name = "ComboBox1";
            this.ComboBox1.Size = new System.Drawing.Size(16021);
            this.ComboBox1.TabIndex = 12;
            this.ComboBox1.Text = "ComboBox1";
            // 
            // RadioButton1
            // 
            this.RadioButton1.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.RadioButton1.Location = new System.Drawing.Point(2488);
            this.RadioButton1.Name = "RadioButton1";
            this.RadioButton1.Size = new System.Drawing.Size(17216);
            this.RadioButton1.TabIndex = 11;
            this.RadioButton1.Text = "RadioButton1";
            // 
            // CheckBox1
            // 
            this.CheckBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.CheckBox1.Location = new System.Drawing.Point(2456);
            this.CheckBox1.Name = "CheckBox1";
            this.CheckBox1.Size = new System.Drawing.Size(16020);
            this.CheckBox1.TabIndex = 10;
            this.CheckBox1.Text = "CheckBox1";
            // 
            // Button1
            // 
            this.Button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.Button1.Location = new System.Drawing.Point(2412);
            this.Button1.Name = "Button1";
            this.Button1.Size = new System.Drawing.Size(10428);
            this.Button1.TabIndex = 9;
            this.Button1.Text = "Button1";
            // 
            // WindowsXP
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(513);
            this.ClientSize = new System.Drawing.Size(292298);
            this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                          this.HScrollBar1,
                                                                          this.ProgressBar1,
                                                                          this.TrackBar1,
                                                                          this.ComboBox1,
                                                                          this.RadioButton1,
                                                                          this.CheckBox1,
                                                                          this.Button1});
            this.Name = "WindowsXP";
            this.Text = "Windows XP Controls";
            ((System.ComponentModel.ISupportInitialize)(this.TrackBar1)).EndInit();
            this.ResumeLayout(false);

        }
        #endregion

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() 
        {
            Application.Run(new WindowsXP());
        }
    }
}


           
       
Related examples in the same category
1. Add items to combo boxAdd items to combo box
2. Get Selected item from ComboBoxGet Selected item from ComboBox
3. ComboBox Selected Item changed event
4. ComboBox selected Item changed event 1
5. ComboBox selected item changed event 2ComboBox selected item changed event 2
6. ComboBox with color cell rendererComboBox with color cell renderer
w_w___w_._j_a__va_2__s_._co_m__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.