Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

Minor converting prob. from VBA to VB

 I have written some stuff in Access, and there are a few things I haven't been able to figure out how to make happen when converting it to Visual Basic.

1.  On a form in Access, hitting ENTER will automatically tab to the next field.....hitting enter on a VB form does nothing.  In access I could tell the form how I want it to react to the ENTER key....how do I do this in VB.  Or do I have to do it with previewing the keys?

2.  I was able to get a full screen, no title bar, no task bar.....how do I do this in VB?

3.  Shortcuts on buttons also could be used without having to hit the ALT key in access.....does this work in VB?

Thanks,

 Craig
0
cyberimage
Asked:
cyberimage
1 Solution
 
agrillageCommented:
The windows standard for moving from one control to another is the TAB key. Use the Tab Index property to control the order. The Enter key is often tied to a button (eg. the OK button) by setting the default property of the button. To get a full screen, set your form's borderstyle property to none and maximize to true. To get a shortcut on a button, place a & before the appropriate letter in the caption property.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now