Solved

Minor converting prob. from VBA to VB

Posted on 1999-01-02
1
155 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

707 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

12 Experts available now in Live!

Get 1:1 Help Now