Click here to Skip to main content
15,896,606 members
Articles / Database Development / SQL Server

SSMSKeyBindings - edit keybindings in sql mgt studio

Rate me:
Please Sign up or sign in to vote.
4.67/5 (6 votes)
20 Jul 2007LGPL32 min read 46.3K   204   25  
An addin to Sql Server Management studio that lets you configure keybindings
namespace Sassner.SSMSKeybindings {
	partial class frmKeybindings {
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private readonly 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.label1 = new System.Windows.Forms.Label();
			this.txtCommandToFilter = new System.Windows.Forms.TextBox();
			this.lstCommands = new System.Windows.Forms.ListBox();
			this.lblSelectedShortcuts = new System.Windows.Forms.Label();
			this.cmbSetShortcuts = new System.Windows.Forms.ComboBox();
			this.cmdRemove = new System.Windows.Forms.Button();
			this.label3 = new System.Windows.Forms.Label();
			this.cmbRegion = new System.Windows.Forms.ComboBox();
			this.label4 = new System.Windows.Forms.Label();
			this.txtNewShortcut = new System.Windows.Forms.TextBox();
			this.cmdAssign = new System.Windows.Forms.Button();
			this.lblShortcutCurrentlyUsed = new System.Windows.Forms.Label();
			this.cmbCurrentlyUsedShortcuts = new System.Windows.Forms.ComboBox();
			this.cmdCancel = new System.Windows.Forms.Button();
			this.cmdOk = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(8, 7);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(143, 13);
			this.label1.TabIndex = 0;
			this.label1.Text = "Show &commands containing:";
			// 
			// txtCommandToFilter
			// 
			this.txtCommandToFilter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.txtCommandToFilter.Location = new System.Drawing.Point(11, 24);
			this.txtCommandToFilter.Name = "txtCommandToFilter";
			this.txtCommandToFilter.Size = new System.Drawing.Size(515, 20);
			this.txtCommandToFilter.TabIndex = 1;
			this.txtCommandToFilter.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtCommandToFilter_KeyUp);
			// 
			// lstCommands
			// 
			this.lstCommands.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
						| System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.lstCommands.Location = new System.Drawing.Point(11, 51);
			this.lstCommands.Name = "lstCommands";
			this.lstCommands.Size = new System.Drawing.Size(515, 134);
			this.lstCommands.TabIndex = 2;
			this.lstCommands.SelectedIndexChanged += new System.EventHandler(this.lstCommands_SelectedIndexChanged);
			// 
			// lblSelectedShortcuts
			// 
			this.lblSelectedShortcuts.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.lblSelectedShortcuts.AutoSize = true;
			this.lblSelectedShortcuts.Enabled = false;
			this.lblSelectedShortcuts.Location = new System.Drawing.Point(11, 192);
			this.lblSelectedShortcuts.Name = "lblSelectedShortcuts";
			this.lblSelectedShortcuts.Size = new System.Drawing.Size(162, 13);
			this.lblSelectedShortcuts.TabIndex = 3;
			this.lblSelectedShortcuts.Text = "Shor&tcuts for selected command:";
			// 
			// cmbSetShortcuts
			// 
			this.cmbSetShortcuts.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.cmbSetShortcuts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbSetShortcuts.Enabled = false;
			this.cmbSetShortcuts.FormattingEnabled = true;
			this.cmbSetShortcuts.Location = new System.Drawing.Point(11, 209);
			this.cmbSetShortcuts.Name = "cmbSetShortcuts";
			this.cmbSetShortcuts.Size = new System.Drawing.Size(420, 21);
			this.cmbSetShortcuts.TabIndex = 4;
			// 
			// cmdRemove
			// 
			this.cmdRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.cmdRemove.Location = new System.Drawing.Point(437, 207);
			this.cmdRemove.Name = "cmdRemove";
			this.cmdRemove.Size = new System.Drawing.Size(89, 23);
			this.cmdRemove.TabIndex = 5;
			this.cmdRemove.Text = "&Remove";
			this.cmdRemove.UseVisualStyleBackColor = true;
			this.cmdRemove.Click += new System.EventHandler(this.cmdRemove_Click);
			// 
			// label3
			// 
			this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(11, 237);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(104, 13);
			this.label3.TabIndex = 6;
			this.label3.Text = "Use &new shortcut in:";
			// 
			// cmbRegion
			// 
			this.cmbRegion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.cmbRegion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbRegion.FormattingEnabled = true;
			this.cmbRegion.Location = new System.Drawing.Point(11, 254);
			this.cmbRegion.Name = "cmbRegion";
			this.cmbRegion.Size = new System.Drawing.Size(242, 21);
			this.cmbRegion.TabIndex = 7;
			// 
			// label4
			// 
			this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.label4.AutoSize = true;
			this.label4.Location = new System.Drawing.Point(256, 237);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(102, 13);
			this.label4.TabIndex = 8;
			this.label4.Text = "&Press shortcut keys:";
			// 
			// txtNewShortcut
			// 
			this.txtNewShortcut.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.txtNewShortcut.Location = new System.Drawing.Point(259, 254);
			this.txtNewShortcut.Name = "txtNewShortcut";
			this.txtNewShortcut.Size = new System.Drawing.Size(172, 20);
			this.txtNewShortcut.TabIndex = 9;
			this.txtNewShortcut.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtNewShortcut_KeyDown);
			// 
			// cmdAssign
			// 
			this.cmdAssign.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.cmdAssign.Enabled = false;
			this.cmdAssign.Location = new System.Drawing.Point(437, 254);
			this.cmdAssign.Name = "cmdAssign";
			this.cmdAssign.Size = new System.Drawing.Size(89, 23);
			this.cmdAssign.TabIndex = 10;
			this.cmdAssign.Text = "A&ssign";
			this.cmdAssign.UseVisualStyleBackColor = true;
			this.cmdAssign.Click += new System.EventHandler(this.cmdAssign_Click);
			// 
			// lblShortcutCurrentlyUsed
			// 
			this.lblShortcutCurrentlyUsed.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.lblShortcutCurrentlyUsed.AutoSize = true;
			this.lblShortcutCurrentlyUsed.Enabled = false;
			this.lblShortcutCurrentlyUsed.Location = new System.Drawing.Point(11, 280);
			this.lblShortcutCurrentlyUsed.Name = "lblShortcutCurrentlyUsed";
			this.lblShortcutCurrentlyUsed.Size = new System.Drawing.Size(133, 13);
			this.lblShortcutCurrentlyUsed.TabIndex = 11;
			this.lblShortcutCurrentlyUsed.Text = "Shortcut c&urrently used by:";
			// 
			// cmbCurrentlyUsedShortcuts
			// 
			this.cmbCurrentlyUsedShortcuts.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.cmbCurrentlyUsedShortcuts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbCurrentlyUsedShortcuts.Enabled = false;
			this.cmbCurrentlyUsedShortcuts.FormattingEnabled = true;
			this.cmbCurrentlyUsedShortcuts.Location = new System.Drawing.Point(11, 296);
			this.cmbCurrentlyUsedShortcuts.Name = "cmbCurrentlyUsedShortcuts";
			this.cmbCurrentlyUsedShortcuts.Size = new System.Drawing.Size(515, 21);
			this.cmbCurrentlyUsedShortcuts.TabIndex = 12;
			// 
			// cmdCancel
			// 
			this.cmdCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.cmdCancel.Location = new System.Drawing.Point(451, 324);
			this.cmdCancel.Name = "cmdCancel";
			this.cmdCancel.Size = new System.Drawing.Size(75, 23);
			this.cmdCancel.TabIndex = 13;
			this.cmdCancel.Text = "Cancel";
			this.cmdCancel.UseVisualStyleBackColor = true;
			this.cmdCancel.Click += new System.EventHandler(this.cmdCancel_Click);
			// 
			// cmdOk
			// 
			this.cmdOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.cmdOk.Location = new System.Drawing.Point(362, 323);
			this.cmdOk.Name = "cmdOk";
			this.cmdOk.Size = new System.Drawing.Size(75, 23);
			this.cmdOk.TabIndex = 14;
			this.cmdOk.Text = "OK";
			this.cmdOk.UseVisualStyleBackColor = true;
			this.cmdOk.Click += new System.EventHandler(this.cmdOk_Click);
			// 
			// frmKeybindings
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(538, 359);
			this.Controls.Add(this.cmdOk);
			this.Controls.Add(this.cmdCancel);
			this.Controls.Add(this.cmbCurrentlyUsedShortcuts);
			this.Controls.Add(this.lblShortcutCurrentlyUsed);
			this.Controls.Add(this.cmdAssign);
			this.Controls.Add(this.txtNewShortcut);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.cmbRegion);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.cmdRemove);
			this.Controls.Add(this.cmbSetShortcuts);
			this.Controls.Add(this.lblSelectedShortcuts);
			this.Controls.Add(this.lstCommands);
			this.Controls.Add(this.txtCommandToFilter);
			this.Controls.Add(this.label1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
			this.KeyPreview = true;
			this.Name = "frmKeybindings";
			this.ShowIcon = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Keybindings";
			this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.frmKeybindings_KeyDown);
			this.Load += new System.EventHandler(this.frmKeybindings_Load);
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txtCommandToFilter;
		private System.Windows.Forms.ListBox lstCommands;
		private System.Windows.Forms.Label lblSelectedShortcuts;
		private System.Windows.Forms.ComboBox cmbSetShortcuts;
		private System.Windows.Forms.Button cmdRemove;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.ComboBox cmbRegion;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox txtNewShortcut;
		private System.Windows.Forms.Button cmdAssign;
		private System.Windows.Forms.Label lblShortcutCurrentlyUsed;
		private System.Windows.Forms.ComboBox cmbCurrentlyUsedShortcuts;
		private System.Windows.Forms.Button cmdCancel;
		private System.Windows.Forms.Button cmdOk;
	}
}

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
Web Developer
Sweden Sweden
Working as a developer in the financial business. Been working with computers for 10 years, but have had computers as a hobby for 25 years.

Comments and Discussions