🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #1627

Re: Enter key in VB

#1627
From: Gary Fowler
Date: Thu, 15 Oct 1992 20:26
24 lines
1971 bytes
>Jon, In comp.os.ms-windows.programmer.misc you write:

>{stuff deleted...}
>If I create a form in a window, is it possible to prevent the ENTER key from 
>selecting the default control.  I realise I can prevent a control from being 
>the default but what I really need is a collection of text boxes for input 
>with the enter key changing focus between each one.  Outside this control 
>area, I need two control buttons which are selected using the mouse.  For 
>example, if the user presses enter in the last text box, I don't want the OK 
>or CANCEL control buttons to be triggered.  This is really simple, probably, 
>but I need to know before I purchase software.

It is possible, but I would advise against it since it does not conform to
Windows standards.  The standard is to TAB from one field to the next.  One
of the advantages of Windows is to have a common look and feel between apps.
You know what you and the users need, so the choice is up to you.

********************************************************************************
*     Gary Fowler                     *     The storm starts when the drops    *
*     gfowler@esunix.sim.es.com       *     start dropping.  When the drops    *
*     Evans & Sutherland              *     stop dropping then the storm       *
*     600 Komas Drive                 *     starts stopping.                   *
*     Salt Lake City, UT              *     -Dr. Seuss                         *
********************************************************************************
Technical Details
Message-ID: <1992Oct15.202628.13352@javelin.sim.es.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!javelin.sim.es.com!gfowler
References: <1992Oct12.105905@axion.bt.co.uk> <36560011@hpgrla.gr.hp.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!javelin.sim.es.com!gfowler
From: gfowler@javelin.sim.es.com (Gary Fowler)
Subject: Re: Enter key in VB
Message-ID: <1992Oct15.202628.13352@javelin.sim.es.com>
Organization: Evans & Sutherland Computer Corporation
References: <1992Oct12.105905@axion.bt.co.uk> <36560011@hpgrla.gr.hp.com>
Date: Thu, 15 Oct 1992 20:26:28 GMT
Lines: 24