private void toolStrip_tb_Y_scale_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == (char)13) { double size; if (Double.TryParse(toolStrip_tb_Y_scale.Text.Replace(',', '.'), System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out size)) { transformStart("Scale"); fCTBCode.Text = VisuGCode.transformGCodeScale(100, size); transformEnd(); } else { MessageBox.Show(Localization.getString("mainParseError"), Localization.getString("mainAttention")); toolStrip_tb_Y_scale.Text = "100.00"; } e.SuppressKeyPress = true; gCodeToolStripMenuItem.HideDropDown(); } }