Re: Enter Key vs. Tab Key



Well , you can code around the mentioned issue ( boolean flag wether to
send the tab or not )

about the in VB6 not encouraged thingy afaik was this because the need of an
API to perform a sendkey in VB.Net it is part of the framework

in my opinion you only have 2 options

1. code the behavior that you want

2. use the controls out of the box and live with there habits and
limitations


regards

Michel



"Michael Cook" <MichaelCook@xxxxxxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:E68ED773-8996-404D-81E6-8B84B680188C@xxxxxxxxxxxxxxxx
What about my text boxes with multiple lines that I don't want to
interpret
the ENTER key as the TAB key. I think the KEYPREVIEW will be global on the
form? Is there a Microsoft recommended method? I thought in VB6 using
SendKeys as this solution was not encouraged by Microsoft.

- Michael

"Michel Posseth [MCP]" wrote:

Well , we just set the keypreview of the form to true and what do you
think
?? we catch the enter key and send a tab with sendkeys ...


:-) as you see not so much has changed

regards

Michel posseth [MCP]


"Michael Cook" <MichaelCook@xxxxxxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:182A316F-9D07-4997-AA23-34AB981C4F98@xxxxxxxxxxxxxxxx
In my data entry forms, I want to treat the Enter key on text box as
though
the user has pressed the tab key and jump to the next control. In VB6 I
would
do this by using the SendKeys "{Tab}" routine. What is the best
practice
for
Visual Basic .NET?





.



Relevant Pages

  • Re: Multiple Sendkeys not working... need help to condense code
    ... This command does nothing with the ... i'm putting together i have 20+ sendkeys in a row just to get to ... it puts some combination of the word tab and the number used or ... the program instead of the actuall key stroke. ...
    (microsoft.public.excel.programming)
  • RE: ComboBox Focus
    ... Tab seems to hop ... Again, ideally would like to assign the tab key to it, and just "tab off" ... after making the selection, but perhaps that is not possible. ... Private Sub ComboBox1_Change ...
    (microsoft.public.excel.programming)
  • ActiveX Combo Box Focus
    ... Tab seems to hop ... Again, ideally would like to assign the tab key to it, and just "tab off" ... after making the selection, but perhaps that is not possible. ... Private Sub ComboBox1_Change ...
    (microsoft.public.excel.programming)
  • Re: Tab key and the CF SP2 in Win CE
    ... this is a know problem with emulators. ... can use it to press the Tab key, ... | Content-Type: text/plain; ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Macro code for ALT+release
    ... If I assign any ALT+letter combination to a macro that uses SendKeys, ... If this macro is run from the Macro dialog, or from a button assigned to it on the QAT, or via an assigned hotkey combination that *isn't* of the form ALT+something, it runs as intended -- that is, it runs the command that bears the S accelerator on the AddIns tab. ...
    (microsoft.public.word.vba.general)

Loading