Results 1 to 3 of 3

Thread: changing the "accept" button on-the-fly [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    changing the "accept" button on-the-fly [RESOLVED]

    If I need an accept button to change according to which group box a user is in, what do I need to check for? is it groupbox.got focus or something similar?
    Last edited by Andy; Mar 25th, 2004 at 10:01 PM.

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    there is an even called Enter that is fired when it gets the focus, but dunno if you can really implement that feature nicely
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    In the ENTER event of each groupbox, either change the Text property of the button and then test for that Text on the button's click event, or set a variable to a value which you then check on the click event.

    The ENTER event of a groupbox fires whenever any object contained in that groupbox receives focus etc. It does not fire when the cursor moves over the groupbox or contained objects, neither does it fire on a right click.

    Also, look out for some wierd results, e.g. If there is a textbox in the groupbox, the enter event will fire when the groupbox first becomes visible.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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