Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
GeneralRe: How does a Component get its parent form Pin
James T. Johnson12-Jan-03 11:34
James T. Johnson12-Jan-03 11:34 
GeneralRe: How does a Component get its parent form Pin
leppie13-Jan-03 6:18
leppie13-Jan-03 6:18 
QuestionToolbar Button Groups? Pin
Jamie Nordmeyer8-Jan-03 8:27
Jamie Nordmeyer8-Jan-03 8:27 
GeneralSpawn a commandline window with environment Pin
kman8-Jan-03 7:05
kman8-Jan-03 7:05 
GeneralRe: Spawn a commandline window with environment Pin
leppie8-Jan-03 7:36
leppie8-Jan-03 7:36 
GeneralRe: Spawn a commandline window with environment Pin
kman8-Jan-03 17:27
kman8-Jan-03 17:27 
GeneralRe: Spawn a commandline window with environment Pin
Daniel Turini8-Jan-03 8:02
Daniel Turini8-Jan-03 8:02 
GeneralCombobox: leaving on enter-key Pin
Nachte8-Jan-03 2:41
Nachte8-Jan-03 2:41 
Hi,

for my textboxes the following function works just fine when i set the keypreview of the form to true, and call this function in the keypressed event of the form:

public static void MoveNext(Form current_form, System.Windows.Forms.KeyPressEventArgs e)
{
if (e.KeyChar == 13)
{
e.Handled = true;
current_form.SelectNextControl(current_form.ActiveControl,true,true,true,true);
}
}

As expected focus jumps to the next control.

But if the focus sits on a combobox, i just get a beep but it doesn't change focus. Now, if i put the code IN the KeyPressed event of the combo it does jump to the next control, but it still beeps.

Anyone have any ideas on how to solve this? The method of putting it insiode the keypressed event of the combo would be good enough for me atm, if it wasn't for that beep every time.

thanks,
Kristof
GeneralRe: Combobox: leaving on enter-key Pin
mikasa8-Jan-03 2:57
mikasa8-Jan-03 2:57 
GeneralBrowser Helper Object Pin
Boris Yankov7-Jan-03 16:12
Boris Yankov7-Jan-03 16:12 
GeneralWindows XP fast user switching Pin
Alex Korchemniy7-Jan-03 13:51
Alex Korchemniy7-Jan-03 13:51 
GeneralString formatting Pin
Le centriste7-Jan-03 9:38
Le centriste7-Jan-03 9:38 
GeneralRe: String formatting Pin
leppie7-Jan-03 9:51
leppie7-Jan-03 9:51 
GeneralRe: String formatting Pin
Le centriste7-Jan-03 11:14
Le centriste7-Jan-03 11:14 
GeneralRe: String formatting Pin
John Burton8-Jan-03 4:26
John Burton8-Jan-03 4:26 
GeneralRe: String formatting Pin
leppie8-Jan-03 6:12
leppie8-Jan-03 6:12 
GeneralHICON's .NET Equivilent Pin
Nnamdi Onyeyiri7-Jan-03 6:29
Nnamdi Onyeyiri7-Jan-03 6:29 
GeneralRe: HICON's .NET Equivilent Pin
leppie7-Jan-03 7:49
leppie7-Jan-03 7:49 
Generala tree copying Pin
misiek7-Jan-03 6:06
misiek7-Jan-03 6:06 
GeneralRe: a tree copying Pin
leppie7-Jan-03 8:30
leppie7-Jan-03 8:30 
GeneralRe: a tree copying Pin
misiek7-Jan-03 22:33
misiek7-Jan-03 22:33 
GeneralRich Text Box Edit Cursor Pin
KenBloke7-Jan-03 5:35
KenBloke7-Jan-03 5:35 
GeneralRegistering an ActiveX DLL or OCX Pin
mikasa7-Jan-03 5:12
mikasa7-Jan-03 5:12 
GeneralRe: Registering an ActiveX DLL or OCX Pin
Richard Deeming8-Jan-03 2:40
mveRichard Deeming8-Jan-03 2:40 
GeneralRe: Registering an ActiveX DLL or OCX Pin
mikasa8-Jan-03 2:52
mikasa8-Jan-03 2:52 

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.