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

UDL.Net, A ConnectionString Editor Built from Scratch

Rate me:
Please Sign up or sign in to vote.
4.80/5 (23 votes)
24 Feb 2010CPOL5 min read 50.1K   2.8K   54  
UDL.Net is a ConnectionString editor built from scratch, modeled after the Universal Data Link (UDL) and the Visual Studio DataConnectionDialog.

namespace UDL.Editors
{
	partial class OdbcEditor
	{
		/// <summary>
		/// Designer variable used to keep track of non-visual components.
		/// </summary>
		private System.ComponentModel.IContainer components = null;
		
		/// <summary>
		/// Disposes resources used by the control.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing) {
				if (components != null) {
					components.Dispose();
				}
			}
			base.Dispose(disposing);
		}
		
		/// <summary>
		/// This method is required for Windows Forms designer support.
		/// Do not change the method contents inside the source code editor. The Forms designer might
		/// not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeComponent()
		{
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.ckUseDSN = new System.Windows.Forms.RadioButton();
            this.txDatasource = new System.Windows.Forms.ComboBox();
            this.ckUseConnString = new System.Windows.Forms.RadioButton();
            this.txConnectionString = new System.Windows.Forms.TextBox();
            this.cmdBuildString = new System.Windows.Forms.Button();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.txUserID = new System.Windows.Forms.TextBox();
            this.txPassword = new System.Windows.Forms.TextBox();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.groupBox3.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.ckUseDSN);
            this.groupBox3.Controls.Add(this.txDatasource);
            this.groupBox3.Controls.Add(this.ckUseConnString);
            this.groupBox3.Controls.Add(this.txConnectionString);
            this.groupBox3.Controls.Add(this.cmdBuildString);
            this.groupBox3.Location = new System.Drawing.Point(3, 3);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(294, 110);
            this.groupBox3.TabIndex = 1;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "1.- Odbc datasource";
            // 
            // ckUseDSN
            // 
            this.ckUseDSN.AutoSize = true;
            this.ckUseDSN.Checked = true;
            this.ckUseDSN.Location = new System.Drawing.Point(12, 20);
            this.ckUseDSN.Name = "ckUseDSN";
            this.ckUseDSN.Size = new System.Drawing.Size(157, 17);
            this.ckUseDSN.TabIndex = 0;
            this.ckUseDSN.TabStop = true;
            this.ckUseDSN.Text = "Existing user or system DSN";
            this.ckUseDSN.UseVisualStyleBackColor = true;
            // 
            // txDatasource
            // 
            this.txDatasource.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txDatasource.FormattingEnabled = true;
            this.txDatasource.Location = new System.Drawing.Point(12, 39);
            this.txDatasource.Name = "txDatasource";
            this.txDatasource.Size = new System.Drawing.Size(271, 21);
            this.txDatasource.TabIndex = 1;
            // 
            // ckUseConnString
            // 
            this.ckUseConnString.AutoSize = true;
            this.ckUseConnString.Location = new System.Drawing.Point(12, 62);
            this.ckUseConnString.Name = "ckUseConnString";
            this.ckUseConnString.Size = new System.Drawing.Size(132, 17);
            this.ckUseConnString.TabIndex = 2;
            this.ckUseConnString.Text = "Build connection string";
            this.ckUseConnString.UseVisualStyleBackColor = true;
            // 
            // txConnectionString
            // 
            this.txConnectionString.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txConnectionString.Enabled = false;
            this.txConnectionString.Location = new System.Drawing.Point(12, 81);
            this.txConnectionString.Name = "txConnectionString";
            this.txConnectionString.Size = new System.Drawing.Size(212, 20);
            this.txConnectionString.TabIndex = 3;
            // 
            // cmdBuildString
            // 
            this.cmdBuildString.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.cmdBuildString.Enabled = false;
            this.cmdBuildString.Location = new System.Drawing.Point(230, 79);
            this.cmdBuildString.Name = "cmdBuildString";
            this.cmdBuildString.Size = new System.Drawing.Size(53, 23);
            this.cmdBuildString.TabIndex = 4;
            this.cmdBuildString.Text = "Build";
            this.cmdBuildString.UseVisualStyleBackColor = true;
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.txUserID);
            this.groupBox1.Controls.Add(this.txPassword);
            this.groupBox1.Location = new System.Drawing.Point(3, 119);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(294, 74);
            this.groupBox1.TabIndex = 2;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "2.- Log in information:";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(30, 47);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(56, 13);
            this.label4.TabIndex = 2;
            this.label4.Text = "Password:";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(30, 23);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(46, 13);
            this.label3.TabIndex = 0;
            this.label3.Text = "User ID:";
            // 
            // txUserID
            // 
            this.txUserID.Location = new System.Drawing.Point(100, 20);
            this.txUserID.Name = "txUserID";
            this.txUserID.Size = new System.Drawing.Size(183, 20);
            this.txUserID.TabIndex = 1;
            // 
            // txPassword
            // 
            this.txPassword.Location = new System.Drawing.Point(100, 44);
            this.txPassword.Name = "txPassword";
            this.txPassword.PasswordChar = '*';
            this.txPassword.Size = new System.Drawing.Size(183, 20);
            this.txPassword.TabIndex = 3;
            // 
            // tableLayoutPanel1
            // 
            this.tableLayoutPanel1.AutoSize = true;
            this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.tableLayoutPanel1.ColumnCount = 1;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel1.Controls.Add(this.groupBox3, 0, 0);
            this.tableLayoutPanel1.Controls.Add(this.groupBox1, 0, 1);
            this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 2;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.Size = new System.Drawing.Size(300, 196);
            this.tableLayoutPanel1.TabIndex = 3;
            // 
            // OdbcEditor
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoSize = true;
            this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.Controls.Add(this.tableLayoutPanel1);
            this.Name = "OdbcEditor";
            this.Size = new System.Drawing.Size(306, 202);
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.tableLayoutPanel1.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }
		private System.Windows.Forms.TextBox txPassword;
		private System.Windows.Forms.TextBox txUserID;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
        private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.ComboBox txDatasource;
		private System.Windows.Forms.RadioButton ckUseDSN;
		private System.Windows.Forms.RadioButton ckUseConnString;
		private System.Windows.Forms.GroupBox groupBox3;
        private System.Windows.Forms.Button cmdBuildString;
        private System.Windows.Forms.TextBox txConnectionString;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
	}
}

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
Other
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions