|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
RichTextBox problemIn VB - Visual Studio 2003
As I understand it, in the KeyDown event of a RichTextBox, I can put If e.KeyCode = Keys.Return then e.Handled = False and this will prevent the Enter key being added to the RichTextBox but it doesn't - any ideas? > the KeyDown event of a RichTextBox, I can put There is probably not an easy solution for the return key. Below is copied > If e.KeyCode = Keys.Return then e.Handled = False > and this will prevent the Enter key being added to the RichTextBox from .net help: "To handle keyboard events only at the form level and not allow other controls to receive keyboard events, set the KeyPressEventArgs.Handled property in your form's KeyPress event-handling method to true. Certain keys, such as the TAB, RETURN, ESCAPE, and arrow keys are handled by controls automatically. In order to have these keys raise the KeyDown event, you must override the IsInputKey method in each control on your form. The code for the override of the IsInputKey would need to determine if one of the special keys is pressed and return a value of true." I didn't realise all this, but the Return key does raise the keyDown event
Re: SQL query to Excel file
windowclosing not firing trim(string) vs string.trim How to check base class type of 'open' generic class? (inheritance check) Re: SQL query to Excel file Re: MS Access Reports and VB.NET Program Catch Application After Exit (WaitforExit) VB.Net Change width of datagridview vertical scrollbar Combobox with MultiLine TextBox Getting an emty dataset |
|||||||||||||||||||||||