Get the same action of enter Button...

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

Guest

Hi EveryBody:

How can I use raise event statment to get the same action when I press the
enter button in the key bord ?

Some body give me this:

SendKeys "{ENTER}"
Note that where you must have focus.

any one can told me how can I do so ?

any help will be appreciated

regard's

Husam
 
Husam said:
How can I use raise event statment to get the same action when I press the
enter button in the key bord ?

Some body give me this:

SendKeys "{ENTER}"
Note that where you must have focus.

I am not sure if I understand what you want to do. If you want a button to
be clicked automatically when the enter key is pressed, assign it to the
form's 'AcceptButton' property. If you want its 'Click' event to be raised
programmatically, just call the button's 'PerformClick' method.
 
Inside the form..

Me.AcceptButton.PerformClick()

HTH,

Sam


Hi EveryBody:

How can I use raise event statment to get the same action when I press the
enter button in the key bord ?

Some body give me this:

SendKeys "{ENTER}"
Note that where you must have focus.

any one can told me how can I do so ?

any help will be appreciated

regard's

Husam

B-Line is now hiring one Washington D.C. area VB.NET
developer for WinForms + WebServices position.
Seaking mid to senior level developer. For
information or to apply e-mail resume to
sam_blinex_com.
 

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

Similar Threads


Back
Top