private void richTextBox1_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e) {
if(e.KeyValue == 46)e.Handled = true;
}
--
W.G. Ryan, MVP
www.tibasolutions.com |
www.devbuzz.com |
www.knowdotnet.com
"juststarter" <ju*********@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
hi,
i have a richtextbox and i want to prevent the user from deleting its
contents by using the delete key (keys.delete). How can this be achieved ?
( i guess the same would apply for textbox or combobox controls)
thx;)