static public MessageBoxTheme ShowModeless(IWin32Window window, string text, string caption = "Warning", MessageBoxIcon icon = MessageBoxIcon.None, Icon windowicon = null) { MessageBoxTheme msg = new MessageBoxTheme(text, caption, null, icon, windowicon); msg.Show(window); return(msg); }
private void buttonTest_Click(object sender, EventArgs e) { string target = textBoxSendTo.Text; if (target.HasChars()) { if (target == BaseUtils.EnhancedSendKeys.CurrentWindow || target.Equals(DefaultProcessID)) { MessageBoxTheme.Show(this, "Name a process to test sending keys".TxID(ECIDs.KeyForm_NOPN)); } else { string err = BaseUtils.EnhancedSendKeys.SendToProcess(textBoxKeys.Text, DefaultDelay <= DefaultDelayID ? 10 : DefaultDelay, 2, 2, textBoxSendTo.Text, additionalkeyparser); if (err.Length > 0) { MessageBoxTheme.Show(this, string.Format("Error {0} - check entry".TxID(ECIDs.KeyForm_KERR), err)); } } } else { MessageBoxTheme.Show(this, "No process names to send keys to".TxID(ECIDs.KeyForm_NOP)); } }
private void buttonTest_Click(object sender, EventArgs e) { string target = textBoxSendTo.Text; if (target.HasChars()) { if (target == BaseUtils.EnhancedSendKeys.CurrentWindow) { MessageBoxTheme.Show("Name a process to test sending keys"); } else { string err = BaseUtils.EnhancedSendKeys.Send(textBoxKeys.Text, DefaultDelay, 2, 2, textBoxSendTo.Text); if (err.Length > 0) { MessageBoxTheme.Show("Error " + err + " - check entry"); } } } else { MessageBoxTheme.Show("No process names to send keys to"); } }