Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
AnswerRe: breaking a string to substrings Pin
Md. Marufuzzaman29-Dec-09 20:42
professionalMd. Marufuzzaman29-Dec-09 20:42 
QuestionRichTextBox in WPF raised InvalidComObjectException in release build application Pin
Jingcheng29-Dec-09 17:52
Jingcheng29-Dec-09 17:52 
QuestionControlPaint.DrawBorder Pin
Saksida Bojan29-Dec-09 11:00
Saksida Bojan29-Dec-09 11:00 
AnswerRe: ControlPaint.DrawBorder Pin
Ravi Bhavnani29-Dec-09 14:53
professionalRavi Bhavnani29-Dec-09 14:53 
GeneralRe: ControlPaint.DrawBorder Pin
Saksida Bojan29-Dec-09 19:26
Saksida Bojan29-Dec-09 19:26 
QuestionHow to mark / build C# / WPF component STA Pin
Jingcheng29-Dec-09 10:15
Jingcheng29-Dec-09 10:15 
QuestionFill HTML-Forms, wait for respons and get answere with C# Pin
diialer29-Dec-09 9:51
diialer29-Dec-09 9:51 
AnswerRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
#realJSOP29-Dec-09 10:07
mve#realJSOP29-Dec-09 10:07 
GeneralRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
diialer29-Dec-09 10:13
diialer29-Dec-09 10:13 
GeneralRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
DaveyM6929-Dec-09 11:24
professionalDaveyM6929-Dec-09 11:24 
GeneralRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
diialer29-Dec-09 13:34
diialer29-Dec-09 13:34 
GeneralRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
Luc Pattyn29-Dec-09 14:29
sitebuilderLuc Pattyn29-Dec-09 14:29 
AnswerRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
OriginalGriff29-Dec-09 10:12
mveOriginalGriff29-Dec-09 10:12 
QuestionWord Bookmark Value Pin
Member 230798429-Dec-09 9:42
Member 230798429-Dec-09 9:42 
AnswerRe: Word Bookmark Value Pin
Rick Shaub30-Dec-09 3:57
Rick Shaub30-Dec-09 3:57 
Questiondisplay detail view form when click on a row Pin
duce1nik29-Dec-09 8:09
duce1nik29-Dec-09 8:09 
AnswerRe: display detail view form when click on a row Pin
#realJSOP29-Dec-09 8:14
mve#realJSOP29-Dec-09 8:14 
GeneralRe: display detail view form when click on a row Pin
duce1nik29-Dec-09 16:50
duce1nik29-Dec-09 16:50 
QuestionCheckBox In WinForms DataGridView Not Working Pin
Kevin Marois29-Dec-09 8:00
professionalKevin Marois29-Dec-09 8:00 
AnswerRe: CheckBox In WinForms DataGridView Not Working Pin
darkelv29-Dec-09 8:05
darkelv29-Dec-09 8:05 
GeneralRe: CheckBox In WinForms DataGridView Not Working Pin
Kevin Marois29-Dec-09 8:19
professionalKevin Marois29-Dec-09 8:19 
GeneralRe: CheckBox In WinForms DataGridView Not Working Pin
darkelv29-Dec-09 8:24
darkelv29-Dec-09 8:24 
GeneralC# VS 2008 3.5 Winform SetFocus to textbox on Ctrl + L Pin
Wheels01229-Dec-09 5:23
Wheels01229-Dec-09 5:23 
GeneralRe: C# VS 2008 3.5 Winform SetFocus to textbox on Ctrl + L Pin
TheFoZ29-Dec-09 5:45
TheFoZ29-Dec-09 5:45 
GeneralRe: C# VS 2008 3.5 Winform SetFocus to textbox on Ctrl + L Pin
Wheels01229-Dec-09 5:56
Wheels01229-Dec-09 5:56 
I put the following code in the Form1_Load:
this.KeyPreview = true;
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);

and I have the following event:
private void Form1_KeyDown(object sender, KeyEventArgs e)
        {         
            if (e.Control && e.KeyValue == 76)
                this.tstbAddress.Focus();
        }

Unfortunately this only works when the form has focus. I'm not sure how to give the form focus. I used a button to give the form focus and the Ctrl+L worked.

Any suggestions? WHEELS

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.