I've tried my best but I can't seem to do it on my own so any help would be greatly appreciated.
private void rtfSend_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) e.Handled = false;
else e.Handled = true;
{
if (e.Control == true & e.KeyCode == Keys.Enter)
// User Pushed Enter Key and Control,
// We don't want the body of Rich TextBox to capture the new line
// and need to remove the new line somehow.
// However only when Control and Enter are pushed at the same time.
{
//Some Function here to remove the extra line made by Enter Key
msg.Body = rtfSend.Text;
rtfSend.Text = "";
}
}
}
This post has been edited by Tertitten: 04 March 2009 - 12:00 AM

New Topic/Question
Reply




MultiQuote




|