home *** CD-ROM | disk | FTP | other *** search
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Data;
-
- namespace Controls
- {
- /// <summary>
- /// Summary description for Form1.
- /// </summary>
- public class Form1 : System.Windows.Forms.Form
- {
- private NETXP.Controls.XPButton xpButton1;
- private NETXP.Controls.XPButton xpButton2;
- private NETXP.Controls.DropDownTreeView dropDownTreeView1;
- private System.Windows.Forms.ImageList imageList1;
- private NETXP.Controls.ColorButton colorButton1;
- private NETXP.Controls.AutoTextBox autoTextBox1;
- private NETXP.Controls.ComboBoxEx comboBoxEx1;
- private NETXP.Controls.Graph graph1;
- private NETXP.Controls.MaskedTextBox maskedTextBox1;
- private NETXP.Controls.SkinnedPanel skinnedPanel1;
- private NETXP.Controls.XPGroupBox xpGroupBox1;
- private NETXP.Controls.XPCheckBox xpCheckBox1;
- private NETXP.Controls.XPButton xpButton3;
- private NETXP.Controls.XPButton xpButton4;
- private System.ComponentModel.IContainer components;
-
- public Form1()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
- }
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if (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.components = new System.ComponentModel.Container();
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
- this.xpButton1 = new NETXP.Controls.XPButton();
- this.xpButton2 = new NETXP.Controls.XPButton();
- this.dropDownTreeView1 = new NETXP.Controls.DropDownTreeView();
- this.imageList1 = new System.Windows.Forms.ImageList(this.components);
- this.colorButton1 = new NETXP.Controls.ColorButton();
- this.autoTextBox1 = new NETXP.Controls.AutoTextBox();
- this.comboBoxEx1 = new NETXP.Controls.ComboBoxEx();
- this.graph1 = new NETXP.Controls.Graph();
- this.maskedTextBox1 = new NETXP.Controls.MaskedTextBox();
- this.skinnedPanel1 = new NETXP.Controls.SkinnedPanel();
- this.xpGroupBox1 = new NETXP.Controls.XPGroupBox();
- this.xpCheckBox1 = new NETXP.Controls.XPCheckBox();
- this.xpButton3 = new NETXP.Controls.XPButton();
- this.xpButton4 = new NETXP.Controls.XPButton();
- this.skinnedPanel1.SuspendLayout();
- this.xpGroupBox1.SuspendLayout();
- this.SuspendLayout();
- //
- // xpButton1
- //
- this.xpButton1.Image = ((System.Drawing.Image)(resources.GetObject("xpButton1.Image")));
- this.xpButton1.Location = new System.Drawing.Point(136, 48);
- this.xpButton1.Name = "xpButton1";
- this.xpButton1.Size = new System.Drawing.Size(192, 48);
- this.xpButton1.TabIndex = 0;
- this.xpButton1.Text = "Click here for a surprise";
- this.xpButton1.Click += new System.EventHandler(this.xpButton1_Click);
- //
- // xpButton2
- //
- this.xpButton2.Location = new System.Drawing.Point(400, 120);
- this.xpButton2.Name = "xpButton2";
- this.xpButton2.Size = new System.Drawing.Size(136, 40);
- this.xpButton2.TabIndex = 1;
- this.xpButton2.Text = "xpButton2";
- this.xpButton2.Click += new System.EventHandler(this.xpButton2_Click);
- //
- // dropDownTreeView1
- //
- this.dropDownTreeView1.Controls.Add(this.dropDownTreeView1.TreeView);
- this.dropDownTreeView1.Location = new System.Drawing.Point(336, 48);
- this.dropDownTreeView1.Name = "dropDownTreeView1";
- this.dropDownTreeView1.Size = new System.Drawing.Size(216, 22);
- this.dropDownTreeView1.TabIndex = 2;
- //
- // dropDownTreeView1.TreeView
- //
- this.dropDownTreeView1.TreeView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.dropDownTreeView1.TreeView.ImageList = this.imageList1;
- this.dropDownTreeView1.TreeView.Indent = 10;
- this.dropDownTreeView1.TreeView.Location = new System.Drawing.Point(0, 0);
- this.dropDownTreeView1.TreeView.Name = "";
- this.dropDownTreeView1.TreeView.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
- new System.Windows.Forms.TreeNode("My Computer", 2, 2, new System.Windows.Forms.TreeNode[] {
- new System.Windows.Forms.TreeNode("System (C:)", 1, 1, new System.Windows.Forms.TreeNode[] {
- new System.Windows.Forms.TreeNode("Windows", new System.Windows.Forms.TreeNode[] {
- new System.Windows.Forms.TreeNode("System")}),
- new System.Windows.Forms.TreeNode("Temp", new System.Windows.Forms.TreeNode[] {
- new System.Windows.Forms.TreeNode("File.ext", 3, 3)})}),
- new System.Windows.Forms.TreeNode("Data (D:)", 1, 1, new System.Windows.Forms.TreeNode[] {
- new System.Windows.Forms.TreeNode("Projects", new System.Windows.Forms.TreeNode[] {
- new System.Windows.Forms.TreeNode("Main.exe", 3, 3),
- new System.Windows.Forms.TreeNode("Readme.txt", 3, 3)}),
- new System.Windows.Forms.TreeNode("Software")})})});
- this.dropDownTreeView1.TreeView.ShowLines = false;
- this.dropDownTreeView1.TreeView.ShowPlusMinus = false;
- this.dropDownTreeView1.TreeView.ShowRootLines = false;
- this.dropDownTreeView1.TreeView.Size = new System.Drawing.Size(0, 150);
- this.dropDownTreeView1.TreeView.TabIndex = 2;
- this.dropDownTreeView1.TreeView.Visible = false;
- //
- // imageList1
- //
- this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
- this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
- this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
- this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
- //
- // colorButton1
- //
- this.colorButton1.CenterColor = System.Drawing.Color.Red;
- this.colorButton1.Location = new System.Drawing.Point(336, 80);
- this.colorButton1.Name = "colorButton1";
- this.colorButton1.Size = new System.Drawing.Size(88, 23);
- this.colorButton1.TabIndex = 3;
- //
- // autoTextBox1
- //
- this.autoTextBox1.AutoCompleteHeader = "Test";
- this.autoTextBox1.Location = new System.Drawing.Point(24, 48);
- this.autoTextBox1.Name = "autoTextBox1";
- this.autoTextBox1.Size = new System.Drawing.Size(104, 21);
- this.autoTextBox1.TabIndex = 4;
- this.autoTextBox1.Text = "autoTextBox1";
- //
- // comboBoxEx1
- //
- this.comboBoxEx1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
- this.comboBoxEx1.Flags = ((NETXP.Controls.AutoCompleteFlags)(((NETXP.Controls.AutoCompleteFlags.FileSystem | NETXP.Controls.AutoCompleteFlags.URLHistory)
- | NETXP.Controls.AutoCompleteFlags.URLMRU)));
- this.comboBoxEx1.ImageIndex = 3;
- this.comboBoxEx1.ImageList = this.imageList1;
- this.comboBoxEx1.Location = new System.Drawing.Point(24, 16);
- this.comboBoxEx1.MRUHive = NETXP.Controls.MRUKeyHive.CurrentUser;
- this.comboBoxEx1.MRUKey = "Software\\Microsoft\\Internet Explorer\\TypedURLs";
- this.comboBoxEx1.Name = "comboBoxEx1";
- this.comboBoxEx1.Size = new System.Drawing.Size(528, 21);
- this.comboBoxEx1.TabIndex = 5;
- this.comboBoxEx1.Text = "comboBoxEx1";
- //
- // graph1
- //
- this.graph1.AxisLabelFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
- this.graph1.fMaxX = 1;
- this.graph1.fMaxY = 1;
- this.graph1.fMinX = 0;
- this.graph1.fMinY = 0;
- this.graph1.HeaderColor = System.Drawing.SystemColors.ActiveCaption;
- this.graph1.HeaderFont = new System.Drawing.Font("Arial", 16F);
- this.graph1.Is3D = false;
- this.graph1.LineColor = System.Drawing.Color.Empty;
- this.graph1.LOBF = false;
- this.graph1.LOBFColor = System.Drawing.Color.Empty;
- this.graph1.Location = new System.Drawing.Point(24, 112);
- this.graph1.Name = "graph1";
- this.graph1.Size = new System.Drawing.Size(352, 280);
- this.graph1.TabIndex = 6;
- this.graph1.Text = "graph1";
- this.graph1.XAxisColor = System.Drawing.SystemColors.ControlText;
- this.graph1.XAxisLabel = "X axis";
- this.graph1.YAxisColor = System.Drawing.SystemColors.ControlText;
- this.graph1.YAxisLabel = "Y axis";
- //
- // maskedTextBox1
- //
- this.maskedTextBox1.Location = new System.Drawing.Point(400, 168);
- this.maskedTextBox1.Masked = NETXP.Controls.Mask.IpAddress;
- this.maskedTextBox1.Name = "maskedTextBox1";
- this.maskedTextBox1.Size = new System.Drawing.Size(144, 20);
- this.maskedTextBox1.TabIndex = 7;
- this.maskedTextBox1.Text = "";
- //
- // skinnedPanel1
- //
- this.skinnedPanel1.BackColor = System.Drawing.Color.Transparent;
- this.skinnedPanel1.Controls.Add(this.xpGroupBox1);
- this.skinnedPanel1.Location = new System.Drawing.Point(392, 264);
- this.skinnedPanel1.Name = "skinnedPanel1";
- this.skinnedPanel1.Size = new System.Drawing.Size(160, 136);
- this.skinnedPanel1.TabIndex = 8;
- this.skinnedPanel1.Text = "skinnedPanel1";
- //
- // xpGroupBox1
- //
- this.xpGroupBox1.BackColor = System.Drawing.SystemColors.Control;
- this.xpGroupBox1.Controls.Add(this.xpCheckBox1);
- this.xpGroupBox1.Location = new System.Drawing.Point(32, 16);
- this.xpGroupBox1.Name = "xpGroupBox1";
- this.xpGroupBox1.Size = new System.Drawing.Size(120, 112);
- this.xpGroupBox1.TabIndex = 0;
- this.xpGroupBox1.TabStop = false;
- this.xpGroupBox1.Text = "xpGroupBox1";
- //
- // xpCheckBox1
- //
- this.xpCheckBox1.BackColor = System.Drawing.Color.Transparent;
- this.xpCheckBox1.Location = new System.Drawing.Point(16, 32);
- this.xpCheckBox1.Name = "xpCheckBox1";
- this.xpCheckBox1.TabIndex = 0;
- this.xpCheckBox1.Text = "xpCheckBox1";
- //
- // xpButton3
- //
- this.xpButton3.Location = new System.Drawing.Point(408, 200);
- this.xpButton3.Name = "xpButton3";
- this.xpButton3.Size = new System.Drawing.Size(128, 23);
- this.xpButton3.TabIndex = 1;
- this.xpButton3.Text = "Test &About Box";
- this.xpButton3.Click += new System.EventHandler(this.xpButton3_Click);
- //
- // xpButton4
- //
- this.xpButton4.Location = new System.Drawing.Point(408, 232);
- this.xpButton4.Name = "xpButton4";
- this.xpButton4.Size = new System.Drawing.Size(128, 23);
- this.xpButton4.TabIndex = 9;
- this.xpButton4.Text = "Test &Wizard";
- this.xpButton4.Click += new System.EventHandler(this.xpButton4_Click);
- //
- // Form1
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(576, 414);
- this.Controls.Add(this.xpButton4);
- this.Controls.Add(this.skinnedPanel1);
- this.Controls.Add(this.maskedTextBox1);
- this.Controls.Add(this.graph1);
- this.Controls.Add(this.comboBoxEx1);
- this.Controls.Add(this.autoTextBox1);
- this.Controls.Add(this.colorButton1);
- this.Controls.Add(this.dropDownTreeView1);
- this.Controls.Add(this.xpButton2);
- this.Controls.Add(this.xpButton1);
- this.Controls.Add(this.xpButton3);
- this.Name = "Form1";
- this.Text = "Form1";
- this.skinnedPanel1.ResumeLayout(false);
- this.xpGroupBox1.ResumeLayout(false);
- this.ResumeLayout(false);
-
- }
- #endregion
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main()
- {
- Application.Run(new Form1());
- }
-
- private void xpButton1_Click(object sender, System.EventArgs e)
- {
- NETXP.Controls.BalloonHelp bh;
- bh = new NETXP.Controls.BalloonHelp();
- bh.CloseOnMouseClick = true;
- bh.CloseOnDeactivate = true;
- bh.CloseOnKeyPress = true;
- bh.Caption = "Test";
- bh.Content = "Something to think about";
- bh.ShowBalloon(this.xpButton1);
- }
-
- private void xpButton2_Click(object sender, System.EventArgs e)
- {
- NETXP.Controls.DesktopAlert alrt;
- alrt = new NETXP.Controls.DesktopAlert("test", "aaaa", "akjb");
- alrt.Show();
- }
-
- private void xpButton3_Click(object sender, System.EventArgs e)
- {
- AboutBox b = new AboutBox();
- b.ShowDialog(this);
- }
-
- private void xpButton4_Click(object sender, System.EventArgs e)
- {
- WizardTest t = new WizardTest();
- t.ShowDialog(this);
- }
- }
- }
-