Results 1 to 2 of 2

Thread: *[Resolved]* Command Buttons and Text Boxes

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    4

    *[Resolved]* Command Buttons and Text Boxes

    I am new to programming and our teacher asked us to write a simple math skills problem for elementary school students. I have an ok one built but I want to do more. There is one thing that keeps bugging me. Whenever you input the answer to the problem into the text box you always have to the click enter(command button) button on the form at the bottom. Is there anyway so that when you type the answer all you have to do is press enter on the keyboard to activate the actually enter button on the form? Sorry if you can't understand this, it is hard for me to explain. And after you press the enter button on the form, I have a next button on the form come up to go to the next problem. Is there anyway to activate that also by pressing enter on the keyboard? Thanks in advance. (I would post my program but I am afraid of someone stealing it.)



    Thanks RobDog888!
    Last edited by Cerlick; Nov 5th, 2003 at 08:07 AM.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    Set the command buttons .Default property to True.
    This will put a heavy rectangular focus around the button. This is
    how you can tell which button is the default.

    Attached Images Attached Images  
    Last edited by RobDog888; Nov 5th, 2003 at 12:20 AM.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width