Click here to Skip to main content
16,005,339 members
Home / Discussions / C#
   

C#

 
GeneralBitmap.FromHbitmap and API call Pin
koatto25-Nov-03 6:25
koatto25-Nov-03 6:25 
GeneralRe: Bitmap.FromHbitmap and API call Pin
Heath Stewart25-Nov-03 8:56
protectorHeath Stewart25-Nov-03 8:56 
GeneralRe: Bitmap.FromHbitmap and API call Pin
koatto25-Nov-03 22:13
koatto25-Nov-03 22:13 
Questionspam/ad? Pin
Roger Alsing25-Nov-03 4:40
Roger Alsing25-Nov-03 4:40 
AnswerRe: spam/ad? Pin
leppie25-Nov-03 7:16
leppie25-Nov-03 7:16 
AnswerRe: spam/ad? Pin
Kentamanos25-Nov-03 10:29
Kentamanos25-Nov-03 10:29 
GeneralChanging the Return Key to a Tab Key in a Windows Application Pin
rclayclements25-Nov-03 4:36
rclayclements25-Nov-03 4:36 
GeneralRe: Changing the Return Key to a Tab Key in a Windows Application Pin
Heath Stewart25-Nov-03 8:49
protectorHeath Stewart25-Nov-03 8:49 
You could handle the Control.KeyDown event and use SendKeys.Send to send a tab:
// In your constructor or via the designer:
this.myForm.KeyPreview = true;
this.myForm.KeyDown += new KeyEventHandler(this.myForm_KeyDown);
 
// Defined elsewhere in your class:
private void myForm_KeyDown(object sender, KeyEventArgs e)
{
  if (e.KeyCode == Keys.Enter)
  {
    e.Handled = true;
    SendKeys.Send("{TAB}");
  }
}
There's other ways through P/Invoking PostMessage, but doing it this way should work and keeps all your code managed.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Changing the Return Key to a Tab Key in a Windows Application Pin
rclayclements25-Nov-03 11:37
rclayclements25-Nov-03 11:37 
GeneralRe: Changing the Return Key to a Tab Key in a Windows Application Pin
Heath Stewart25-Nov-03 11:38
protectorHeath Stewart25-Nov-03 11:38 
GeneralRe: Changing the Return Key to a Tab Key in a Windows Application Pin
rclayclements26-Nov-03 5:09
rclayclements26-Nov-03 5:09 
QuestionHow to unblock..... Pin
Søren Christensen25-Nov-03 4:28
Søren Christensen25-Nov-03 4:28 
AnswerRe: How to unblock..... Pin
obelisk2925-Nov-03 6:05
obelisk2925-Nov-03 6:05 
GeneralRe: How to unblock..... Pin
Søren Christensen25-Nov-03 10:59
Søren Christensen25-Nov-03 10:59 
GeneralSerialization\Remoting problem Pin
rumickyd25-Nov-03 3:45
rumickyd25-Nov-03 3:45 
GeneralRe: Serialization\Remoting problem Pin
obelisk2925-Nov-03 6:08
obelisk2925-Nov-03 6:08 
GeneralRe: Serialization\Remoting problem Pin
rumickyd25-Nov-03 6:26
rumickyd25-Nov-03 6:26 
GeneralRe: Serialization\Remoting problem Pin
obelisk2925-Nov-03 6:34
obelisk2925-Nov-03 6:34 
GeneralDataGrid & Relations Pin
mgaerber25-Nov-03 2:36
mgaerber25-Nov-03 2:36 
GeneralRe: DataGrid & Relations Pin
Heath Stewart25-Nov-03 3:35
protectorHeath Stewart25-Nov-03 3:35 
GeneralRe: DataGrid & Relations Pin
mgaerber25-Nov-03 20:34
mgaerber25-Nov-03 20:34 
GeneralRe: DataGrid & Relations Pin
Heath Stewart26-Nov-03 2:23
protectorHeath Stewart26-Nov-03 2:23 
GeneralRe: DataGrid & Relations Pin
Anonymous26-Nov-03 22:15
Anonymous26-Nov-03 22:15 
GeneralThe csc.exe compiler - member variables Pin
tom7624-Nov-03 23:54
tom7624-Nov-03 23:54 
GeneralRe: I've changed my code and it works - this is awful! Pin
tom7625-Nov-03 0:33
tom7625-Nov-03 0:33 

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.