Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to make resistor color code Pin
Brillian Kharisma12-Feb-12 4:16
Brillian Kharisma12-Feb-12 4:16 
GeneralRe: How to make resistor color code Pin
Michel [mjbohn]12-Feb-12 4:38
Michel [mjbohn]12-Feb-12 4:38 
GeneralRe: How to make resistor color code Pin
Dave Kreskowiak12-Feb-12 4:39
mveDave Kreskowiak12-Feb-12 4:39 
AnswerRe: How to make resistor color code Pin
Luc Pattyn12-Feb-12 9:32
sitebuilderLuc Pattyn12-Feb-12 9:32 
RantRe: How to make resistor color code Pin
Paladin200013-Feb-12 7:47
Paladin200013-Feb-12 7:47 
QuestionDigit Presents Windows phone application development contest Pin
PrateekN11-Feb-12 8:48
PrateekN11-Feb-12 8:48 
QuestionHow to Handle DatagridView's keydown event during editing of cell Pin
Nabawoka11-Feb-12 6:27
Nabawoka11-Feb-12 6:27 
AnswerRe: How to Handle DatagridView's keydown event during editing of cell Pin
Nabawoka11-Feb-12 20:57
Nabawoka11-Feb-12 20:57 
the answer Big Grin | :-D

C#
private const UInt32 WM_KEYDOWN = 0x0100;

      public bool PreFilterMessage(ref Message m)
      {
          if (this.ActiveControl is DataGridViewTextBoxEditingControl)
          {
              if (m.Msg == WM_KEYDOWN)
              {
                  Keys keyCode = (Keys)(int)m.WParam & Keys.KeyCode;

                  if (keyCode == Keys.Enter)
                  {

                      if (this.dgvReadInsert.CurrentCell.ColumnIndex == 4 || this.dgvReadInsert.CurrentCell.ColumnIndex == 10 || this.dgvReadInsert.CurrentCell.ColumnIndex == 6 || this.dgvReadInsert.CurrentCell.ColumnIndex == 12 || this.dgvReadInsert.CurrentCell.ColumnIndex == 13 || this.dgvReadInsert.CurrentCell.ColumnIndex == 14)

                          this.dgvReadInsert.CurrentCell = this.dgvReadInsert[6, this.dgvReadInsert.CurrentCell.RowIndex + 1];

                      return true;

                  }
              }

              return false;

          }

          return false;

      }


after inherit from
class form1 : Form, IMessageFilter
QuestionPlease help me understand serial communication Pin
turbosupramk311-Feb-12 5:52
turbosupramk311-Feb-12 5:52 
AnswerRe: Please help me understand serial communication Pin
OriginalGriff11-Feb-12 9:50
mveOriginalGriff11-Feb-12 9:50 
GeneralRe: Please help me understand serial communication Pin
turbosupramk311-Feb-12 11:09
turbosupramk311-Feb-12 11:09 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn11-Feb-12 11:31
sitebuilderLuc Pattyn11-Feb-12 11:31 
GeneralRe: Please help me understand serial communication Pin
turbosupramk311-Feb-12 11:56
turbosupramk311-Feb-12 11:56 
GeneralRe: Please help me understand serial communication Pin
turbosupramk311-Feb-12 15:29
turbosupramk311-Feb-12 15:29 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn11-Feb-12 15:51
sitebuilderLuc Pattyn11-Feb-12 15:51 
GeneralRe: Please help me understand serial communication Pin
turbosupramk311-Feb-12 22:31
turbosupramk311-Feb-12 22:31 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn11-Feb-12 23:34
sitebuilderLuc Pattyn11-Feb-12 23:34 
GeneralRe: Please help me understand serial communication Pin
turbosupramk312-Feb-12 4:11
turbosupramk312-Feb-12 4:11 
GeneralRe: Please help me understand serial communication Pin
Luc Pattyn12-Feb-12 10:43
sitebuilderLuc Pattyn12-Feb-12 10:43 
GeneralRe: Please help me understand serial communication Pin
turbosupramk312-Feb-12 11:06
turbosupramk312-Feb-12 11:06 
GeneralRe: Please help me understand serial communication Pin
turbosupramk312-Feb-12 16:40
turbosupramk312-Feb-12 16:40 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn13-Feb-12 3:10
sitebuilderLuc Pattyn13-Feb-12 3:10 
GeneralRe: Please help me understand serial communication Pin
turbosupramk313-Feb-12 3:18
turbosupramk313-Feb-12 3:18 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn13-Feb-12 3:31
sitebuilderLuc Pattyn13-Feb-12 3:31 
GeneralRe: Please help me understand serial communication Pin
turbosupramk313-Feb-12 4:00
turbosupramk313-Feb-12 4:00 

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.