Alt+T

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

Guest

How do a process Alt+N on a windows form? Can I connect Alt+N to a button
with the caption 'Add&New'
 
Herr Wagner,
I don't think it is possible unitil I find out how.
Do you know how?
 
Arne said:
I don't think it is possible unitil I find out how.
Do you know how?

Simply assign "Add &New" to the button's 'Text' property. Pressing Alt+N on
the form will raise the button's 'Click' event. This works fine in .NET
1.1.
 
Yes it works as long as you try to have two buttons with the same short cut.
 
Arne said:
Yes it works as long as you try to have two buttons with the same short
cut.

I am curious why you would want to have two buttons with the same
shortcut...
 
I have six different tab controls that goes in and out of focus on a form. I
had two similar buttons on two different tab controls. One button on a
visible tab control and one invisible button on an invisible tabcontrol.
 

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