Solved

Minor converting prob. from VBA to VB

Posted on 1999-01-02
1
156 Views
Last Modified: 2010-05-03
 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
Comment
Question by:cyberimage
1 Comment
 
LVL 1

Accepted Solution

by:
agrillage earned 100 total points
ID: 1453619
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now