Two questions: 1. Change Enter to tab, 2. PostEvent like for PB to

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

1. How can I do?, if the user press the Enter key, tranform to the Tab key

2. If someone has used PowerBuilder, there is a way to Post events and
functions (PostEvent(eventname) or Object.Post FunctionName/EventName: Adds
an event to the end of the event queue of an objec), How can I do it in C#?
 
Hello Andres,

Analyze the pressed key (KeyEventArgs) in the KeyDown handler
and in case of Enter send Tab

AR> 1. How can I do?, if the user press the Enter key, tranform to the
AR> Tab key
AR>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Andres Romero said:
1. How can I do?, if the user press the Enter key, tranform to the Tab key

2. If someone has used PowerBuilder, there is a way to Post events and
functions (PostEvent(eventname) or Object.Post FunctionName/EventName:
Adds
an event to the end of the event queue of an objec), How can I do it in
C#?

PostMessage would be the ticket at the Win32 API level. For the abstraction
of specifying a particular method, perhaps Control.BeginInvoke will do what
you are looking for? I believe it uses PostMessage internally, then later
the message pump decodes the message and calls the delegate.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top