diff --git a/src/AddIns/DisplayBindings/HexEditor/Project/Src/View/HexEditContainer.Designer.cs b/src/AddIns/DisplayBindings/HexEditor/Project/Src/View/HexEditContainer.Designer.cs index 01873c638d..9f6d60d5ef 100644 --- a/src/AddIns/DisplayBindings/HexEditor/Project/Src/View/HexEditContainer.Designer.cs +++ b/src/AddIns/DisplayBindings/HexEditor/Project/Src/View/HexEditContainer.Designer.cs @@ -36,7 +36,7 @@ namespace HexEditor.View System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HexEditContainer)); this.tbSizeToFit = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.tCBViewMode = new System.Windows.Forms.DomainUpDown(); + this.tCBViewMode = new System.Windows.Forms.ToolStripComboBox(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.tSTBCharsPerLine = new System.Windows.Forms.NumericUpDown(); this.toolStripProgressBar1 = new System.Windows.Forms.ToolStripProgressBar(); @@ -69,7 +69,8 @@ namespace HexEditor.View "Decimal"}); this.tCBViewMode.Name = "tCBViewMode"; this.tCBViewMode.Size = new System.Drawing.Size(121, 25); - this.tCBViewMode.SelectedItemChanged += new System.EventHandler(this.TCBViewModeSelectedIndexChanged); + this.tCBViewMode.SelectedIndexChanged += new System.EventHandler(this.TCBViewModeSelectedIndexChanged); + this.tCBViewMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; // // toolStrip1 // @@ -129,7 +130,7 @@ namespace HexEditor.View } private System.Windows.Forms.ToolStripProgressBar toolStripProgressBar1; internal HexEditor.Editor hexEditControl; - private System.Windows.Forms.DomainUpDown tCBViewMode; + private System.Windows.Forms.ToolStripComboBox tCBViewMode; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripButton tbSizeToFit; private System.Windows.Forms.ToolStrip toolStrip1; diff --git a/src/AddIns/DisplayBindings/HexEditor/Project/Src/View/HexEditContainer.cs b/src/AddIns/DisplayBindings/HexEditor/Project/Src/View/HexEditContainer.cs index a7ab920c49..146ab87868 100644 --- a/src/AddIns/DisplayBindings/HexEditor/Project/Src/View/HexEditContainer.cs +++ b/src/AddIns/DisplayBindings/HexEditor/Project/Src/View/HexEditContainer.cs @@ -51,8 +51,7 @@ namespace HexEditor.View ToolStripControlHost bytesPerLine = new ToolStripControlHost(tSTBCharsPerLine); this.toolStrip1.Items.Insert(1, bytesPerLine); - ToolStripControlHost viewMode = new ToolStripControlHost(tCBViewMode); - this.toolStrip1.Items.Insert(3, viewMode); + this.toolStrip1.Items.Insert(3, tCBViewMode); hexEditControl.BytesPerLine = Settings.BytesPerLine; tSTBCharsPerLine.Text = hexEditControl.BytesPerLine.ToString();