Click here to Skip to main content
15,887,338 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Shut Down Local Computer Using VB.NET Pin
krunal2521-Dec-09 18:41
krunal2521-Dec-09 18:41 
QuestionExport to excel is not working on deploying server Pin
binod kumar16-Jun-09 20:52
binod kumar16-Jun-09 20:52 
AnswerCross Post! Pin
Henry Minute16-Jun-09 23:08
Henry Minute16-Jun-09 23:08 
Questionhow to open a word document? Pin
kvalli16-Jun-09 20:30
kvalli16-Jun-09 20:30 
QuestionSimilar to mail box Pin
anandkb16-Jun-09 19:47
anandkb16-Jun-09 19:47 
AnswerRe: Similar to mail box Pin
Colin Angus Mackay17-Jun-09 14:40
Colin Angus Mackay17-Jun-09 14:40 
QuestionDatagridview Keypress Pin
neha.lad16-Jun-09 19:24
neha.lad16-Jun-09 19:24 
AnswerRe: Datagridview Keypress Pin
Henry Minute16-Jun-09 23:34
Henry Minute16-Jun-09 23:34 
Something like the following should get you started toward a solution.
private void yourDataGridView_KeyPress(object sender, KeyPressEventArgs e)
{
    foreach (DataGridViewColumn column in yourDataGridView.Columns)
    {

        if (column.HeaderText.StartsWith(e.KeyChar.ToString()))
        {
            column.Selected = true;
            break;
        }
    }
}


You will also need to pay attention to the EditMode property of the DataGridView, to stop the grid going into an edit state when the key is pressed. Read the documentation for EditMode for the options.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

QuestionModal window and SDI window in Compact framework Pin
rajesh992216-Jun-09 1:04
rajesh992216-Jun-09 1:04 
QuestionAuto fire method when assembly is loaded Pin
nick_dodd16-Jun-09 0:40
nick_dodd16-Jun-09 0:40 
AnswerRe: Auto fire method when assembly is loaded Pin
Luc Pattyn16-Jun-09 1:45
sitebuilderLuc Pattyn16-Jun-09 1:45 
GeneralRe: Auto fire method when assembly is loaded Pin
nick_dodd16-Jun-09 2:35
nick_dodd16-Jun-09 2:35 
QuestionPassing an open TCP socket to another application Pin
supercat915-Jun-09 6:30
supercat915-Jun-09 6:30 
AnswerRe: Passing an open TCP socket to another application Pin
Mark Salsbery15-Jun-09 6:40
Mark Salsbery15-Jun-09 6:40 
GeneralRe: Passing an open TCP socket to another application Pin
supercat915-Jun-09 7:17
supercat915-Jun-09 7:17 
GeneralRe: Passing an open TCP socket to another application Pin
Mark Salsbery15-Jun-09 8:02
Mark Salsbery15-Jun-09 8:02 
GeneralAsync socket I/O Pin
supercat915-Jun-09 8:23
supercat915-Jun-09 8:23 
GeneralRe: Async socket I/O Pin
Mark Salsbery15-Jun-09 9:21
Mark Salsbery15-Jun-09 9:21 
GeneralRe: Async socket I/O Pin
supercat915-Jun-09 10:01
supercat915-Jun-09 10:01 
GeneralRe: Async socket I/O Pin
Mark Salsbery15-Jun-09 10:16
Mark Salsbery15-Jun-09 10:16 
GeneralRe: Async socket I/O Pin
supercat915-Jun-09 11:39
supercat915-Jun-09 11:39 
GeneralRe: Passing an open TCP socket to another application Pin
led mike15-Jun-09 9:17
led mike15-Jun-09 9:17 
GeneralRe: Passing an open TCP socket to another application Pin
Mark Salsbery15-Jun-09 9:24
Mark Salsbery15-Jun-09 9:24 
GeneralRe: Passing an open TCP socket to another application Pin
supercat915-Jun-09 9:49
supercat915-Jun-09 9:49 
GeneralRe: Passing an open TCP socket to another application Pin
led mike15-Jun-09 10:29
led mike15-Jun-09 10:29 

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.