Re: SendKeys under Windows Vista with VB3



"Randy Birch" <rgb_removethis@xxxxxxxx> wrote in message news:eIfKkT0EIHA.4748@xxxxxxxxxxxxxxxxxxxxxxx

hmm ... vb3 was a 16-bit OS; AFAIK it can't call the
32-bit apis. The 16-bit lib for user32 was just user; I
suspect this is no longer provided on Vista

Thanks Rick. Of course you're right (do you ever get bored with that? <g>). I've never used VB3 myself and I never considered that possibility. The old 16 bit User library is definitely no longer provided in Vista, and if VB3 cannot use the 32 bit library then the OP cannot of course use the KeyBd event or indeed any other API funcion, which also rules out subclassing the keyboard, which is the other method I might have suggested. Looking at the OP's most recent post the only job he wants to do is send the Tab key when the user presses Enter, in which case he is probably allowing the user to navigate between TextBoxes using Enter, which is what I often do myself by the way. If that is the case then he'll have to simply trap the Enter key in the Text Boxes and set focus to the next desired text box, something like:

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
Text2.SetFocus
End If
End Sub

And if he wants to also allow the equivalent of Shift Tab (backwards navigation) then he can test for the Shift key in the Keyown event. All this will of course be much eaiser if his textBoxes are in an aray (did VB3 have Control arrays?).

Mike




.



Relevant Pages

  • Re: Sidebar-Elemente verschieben sich selber
    ... Vista ist wohl doch nicht so ausgereift... ... ja, die script engine der Vista-Sidebar hat eine ganze Menge Fehler. ... ob der Effekt auftritt, kann dann u.a. auch von den Interna der Sidebar-Gadgets abhängen, die bestimmte APIs aufrufen. ... Da gehört dann schon einiges an Erfahrungen zu, die Gadgets sauber und weitgehend fehlertolerant zu entwickeln. ...
    (microsoft.public.de.windows.vista.sonstiges)
  • Re: Can I install VB 3.0 on Vista?
    ... Is it 64-bit Vista? ... VB3 install shouldn't overwrite any Vista system files since VB3 ... It would be nice if I could put VB 3 and 6 on Wine on Linux some ...
    (comp.lang.basic.visual.misc)
  • To get mapped drives on Vista
    ... What is the right way to get mapped drives on Vista? ... APIs are not working on Vista, or InstallShield script has problem to ... iErr = ulEntries; ...
    (microsoft.public.win32.programmer.networks)
  • Re: Vista and .NET (Win32 life may be limted)
    ... the Vista APIs otherwise). ... said, be aware that it is unlikely that Vista will not run Win16 apps, my ... such as "(Win32 life may be limited)" you should visit the ...
    (borland.public.delphi.non-technical)
  • Re: from elsewhere, an assembler
    ... want to take advantage of the new APIs for some reason. ... almost every OS upgrade I've seen (including Vista, ... the APIsfor the device drivers changed. ... parallel port. ...
    (alt.lang.asm)