Private KeyHandled As Boolean Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean If FAT_TABLO.RowCount = 0 Then Exit Function Dim icolumn As Integer = FAT_TABLO.CurrentCell.ColumnIndex Dim irow As Integer = FAT_TABLO.CurrentCell.RowIndex If keyData = Keys.Enter Then If icolumn = FAT_TABLO.Columns.Count - 1 Then FAT_TABLO.Rows.Add() FAT_TABLO.CurrentCell = FAT_TABLO(0, irow + 1) Else FAT_TABLO.CurrentCell = FAT_TABLO(icolumn + 1, irow) End If Return True Else Return MyBase.ProcessCmdKey(msg, keyData) End If End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)