Edit Boxes, pressing Return to process.
Posted on 2002-03-14
I'm in my stupid mode again, and don't see what I am doing wrong.
In my app, I have an edit box - single line. I need to be able to enter text and then press the Return key to "submit" the text (kinda like a chat program)
I found in the MSDN a little thing about setting the default button and all, but that didn't seem to help.
every time I press Enter all I get is a ding sound.
In spy, it appears that when I press Enter - the message is going to the edit box, but isn't being passed on to the main dialog box in any way.
Can anyone give some tips on this rather simple issue.
Short and sweet again:
1 edit box.
Needs to notify the main program when Enter is pressed (auto push on a default button would be fine if I can get it to work)
What it's doing:
When enter is pressed, the program (actually windows AFAIK) dings