Click here to Skip to main content
15,923,389 members
Home / Discussions / C#
   

C#

 
Questionmake the form`s location fix Pin
IrfanHaleem1-Jun-07 1:03
IrfanHaleem1-Jun-07 1:03 
AnswerRe: make the form`s location fix Pin
Christian Graus1-Jun-07 1:21
protectorChristian Graus1-Jun-07 1:21 
GeneralRe: make the form`s location fix Pin
Giorgi Dalakishvili1-Jun-07 2:13
mentorGiorgi Dalakishvili1-Jun-07 2:13 
QuestionSpooler Service Pin
M. J. Jaya Chitra31-May-07 23:58
M. J. Jaya Chitra31-May-07 23:58 
AnswerRe: Spooler Service Pin
Shajeel1-Jun-07 0:14
Shajeel1-Jun-07 0:14 
AnswerRe: Spooler Service Pin
originSH1-Jun-07 0:17
originSH1-Jun-07 0:17 
QuestionRe: Spooler Service Pin
M. J. Jaya Chitra1-Jun-07 0:20
M. J. Jaya Chitra1-Jun-07 0:20 
Questionnavigating using arrows keys in Datagridview with combobox Pin
AndrusM31-May-07 23:25
AndrusM31-May-07 23:25 
I have combobox column in DataGridView.
Up and down error keys should be used to navigate previous and next row in
grid.

For this I override them in ProcessCmdKey() event.

When combobox dropdown menu is open arrow arrow keys should move to previous
and next item in
dropdown menu instead of moving betveen rows.
How to check that combobox dropdown menu is open in ProcessCmdKey() ?

DataGridView ProcessCmdKey() method:

protected override bool ProcessCmdKey(ref Message msg, Keys keyData) {<br />
<br />
const int WM_SYSKEYDOWN = 0x104;<br />
<br />
if ((msg.Msg == WM_KEYDOWN) || (msg.Msg == WM_SYSKEYDOWN)) {<br />
 switch (keyData) {<br />
  case Keys.Down:<br />
   if (this.CurrentCell is DataGridViewComboBoxCell) {<br />
    CurrentCell = Rows[CurrentCell.RowIndex + <br />
1].Cells[CurrentCell.ColumnIndex];<br />
    return true;<br />
   }<br />
   break;<br />
<br />
  case Keys.Up:<br />
   if (this.CurrentCell is DataGridViewComboBoxCell) {<br />
    CurrentCell = Rows[CurrentCell.RowIndex - <br />
1].Cells[CurrentCell.ColumnIndex];<br />
    return true;<br />
    }<br />
   break;<br />
   }<br />
 return base.ProcessCmdKey(ref msg, keyData);<br />
}


Andrus

GeneralInterview Questions [modified] Pin
BINOVAR31-May-07 23:24
BINOVAR31-May-07 23:24 
QuestionRe: Interview Questions Pin
Vikram A Punathambekar31-May-07 23:54
Vikram A Punathambekar31-May-07 23:54 
AnswerRe: Interview Questions Pin
BINOVAR1-Jun-07 0:08
BINOVAR1-Jun-07 0:08 
GeneralRe: Interview Questions Pin
Colin Angus Mackay1-Jun-07 0:41
Colin Angus Mackay1-Jun-07 0:41 
GeneralRe: Interview Questions Pin
Paul Conrad1-Jun-07 5:40
professionalPaul Conrad1-Jun-07 5:40 
GeneralRe: Interview Questions Pin
Colin Angus Mackay1-Jun-07 5:51
Colin Angus Mackay1-Jun-07 5:51 
AnswerRe: Interview Questions Pin
Christian Graus1-Jun-07 0:15
protectorChristian Graus1-Jun-07 0:15 
GeneralRe: Interview Questions Pin
BINOVAR1-Jun-07 0:18
BINOVAR1-Jun-07 0:18 
GeneralRe: Interview Questions Pin
originSH1-Jun-07 0:20
originSH1-Jun-07 0:20 
GeneralRe: Interview Questions Pin
Christian Graus1-Jun-07 0:49
protectorChristian Graus1-Jun-07 0:49 
GeneralRe: Interview Questions Pin
BINOVAR1-Jun-07 1:19
BINOVAR1-Jun-07 1:19 
GeneralRe: Interview Questions Pin
Christian Graus1-Jun-07 1:23
protectorChristian Graus1-Jun-07 1:23 
GeneralRe: Interview Questions Pin
BINOVAR1-Jun-07 1:31
BINOVAR1-Jun-07 1:31 
AnswerRe: Interview Questions Pin
Colin Angus Mackay1-Jun-07 0:16
Colin Angus Mackay1-Jun-07 0:16 
GeneralRe: Interview Questions Pin
BINOVAR1-Jun-07 0:24
BINOVAR1-Jun-07 0:24 
GeneralRe: Interview Questions Pin
Colin Angus Mackay1-Jun-07 0:39
Colin Angus Mackay1-Jun-07 0:39 
GeneralRe: Interview Questions Pin
CPallini1-Jun-07 0:41
mveCPallini1-Jun-07 0:41 

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.