|
-
Mar 16th, 2004, 03:41 PM
#1
Thread Starter
Frenzied Member
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.
-
Mar 16th, 2004, 08:05 PM
#2
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!!
-
Mar 16th, 2004, 09:05 PM
#3
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|