Click here to Skip to main content
15,502,191 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionDataGridView and Key events Pin
michaelbarb19-Aug-19 11:31
michaelbarb19-Aug-19 11:31 
AnswerRe: DataGridView and Key events Pin
Eddy Vluggen19-Aug-19 11:43
professionalEddy Vluggen19-Aug-19 11:43 
GeneralRe: DataGridView and Key events Pin
michaelbarb20-Aug-19 4:38
michaelbarb20-Aug-19 4:38 
GeneralRe: DataGridView and Key events Pin
Richard MacCutchan20-Aug-19 5:17
mveRichard MacCutchan20-Aug-19 5:17 
GeneralRe: DataGridView and Key events Pin
michaelbarb20-Aug-19 7:39
michaelbarb20-Aug-19 7:39 
SuggestionRe: DataGridView and Key events Pin
Richard MacCutchan19-Aug-19 22:26
mveRichard MacCutchan19-Aug-19 22:26 
GeneralRe: DataGridView and Key events Pin
michaelbarb21-Aug-19 8:42
michaelbarb21-Aug-19 8:42 
GeneralRe: DataGridView and Key events Pin
Richard Deeming21-Aug-19 9:25
mveRichard Deeming21-Aug-19 9:25 
Simple:
C#
protected override void OnKeyPress(KeyPressEventArgs e)
{
    base.OnKeyPress(e);
    HandleKeyPress(this, e);
}

protected override void OnEditingControlShowing(DataGridViewEditingControlShowingEventArgs e)
{
    base.OnEditingControlShowing(e);
    e.Control.KeyPress += HandleKeyPress;
}

protected virtual void HandleKeyPress(object sender, KeyPressEventArgs e)
{
    // Key checking...
}




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: DataGridView and Key events Pin
michaelbarb21-Aug-19 13:46
michaelbarb21-Aug-19 13:46 
GeneralRe: DataGridView and Key events Pin
Richard MacCutchan21-Aug-19 22:11
mveRichard MacCutchan21-Aug-19 22:11 
GeneralRe: DataGridView and Key events Pin
michaelbarb23-Aug-19 4:51
michaelbarb23-Aug-19 4:51 
GeneralRe: DataGridView and Key events Pin
Richard MacCutchan23-Aug-19 5:07
mveRichard MacCutchan23-Aug-19 5:07 
QuestionRipping music from CD Windows Vista vs Windows 10? Pin
Tovino James3-Jul-19 20:49
Tovino James3-Jul-19 20:49 
AnswerRe: Ripping music from CD Windows Vista vs Windows 10? Pin
OriginalGriff3-Jul-19 20:56
mveOriginalGriff3-Jul-19 20:56 
AnswerRe: Ripping music from CD Windows Vista vs Windows 10? Pin
Eddy Vluggen19-Aug-19 13:53
professionalEddy Vluggen19-Aug-19 13:53 
QuestionPDF Drag Drop windows form application Pin
Member 1450785221-Jun-19 2:52
Member 1450785221-Jun-19 2:52 
QuestionWinform dox matrix printer direct printing Pin
Member 1368241416-Jun-19 4:56
Member 1368241416-Jun-19 4:56 
AnswerRe: Winform dox matrix printer direct printing Pin
Richard MacCutchan16-Jun-19 6:23
mveRichard MacCutchan16-Jun-19 6:23 
GeneralRe: Winform dox matrix printer direct printing Pin
Member 1368241416-Jun-19 21:55
Member 1368241416-Jun-19 21:55 
GeneralRe: Winform dox matrix printer direct printing Pin
Dave Kreskowiak17-Jun-19 5:39
mveDave Kreskowiak17-Jun-19 5:39 
AnswerRe: Winform dox matrix printer direct printing Pin
Gerry Schmitz16-Jun-19 8:08
mveGerry Schmitz16-Jun-19 8:08 
GeneralRe: Winform dox matrix printer direct printing Pin
Member 1368241416-Jun-19 21:51
Member 1368241416-Jun-19 21:51 
GeneralRe: Winform dox matrix printer direct printing Pin
Dave Kreskowiak17-Jun-19 5:38
mveDave Kreskowiak17-Jun-19 5:38 
GeneralRe: Winform dox matrix printer direct printing Pin
Gerry Schmitz17-Jun-19 6:52
mveGerry Schmitz17-Jun-19 6:52 
QuestionChanges to User Control do not get displayed in Form... Pin
Matt Slay24-Apr-19 7:53
Matt Slay24-Apr-19 7:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.