Link to home
Start Free TrialLog in
Avatar of rjef
rjefFlag for United States of America

asked on

using a form as a message box vb6

VB6
having a hard time trying to make a form/splash screen to be used as a message box.  i want the user to have to click a "Yes" or "No" label instead of a message box button because they have just been press the space bar or just scanning the next barcode instead of acutally reading the message.  any thoughts.  i can show the splash screen with the labels but when i refocus on the orginal form my text1.setfocus errors out.  any idea?  There is a lot of code mixed in with this so it is hard to provide an example.
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What's the error?  "Errors out" is not very specific.
Avatar of rjef

ASKER

ok so instead of buttons on the message form i want labels for yes or no . i will try that thanks
Avatar of rjef

ASKER

sorry not sure how to remove the check box either
What is the advantage of labels?
sorry not sure how to remove the check box either
In the IDE, right-click on the checkbox and choose 'Cut'.
I might get silly and make the default button a third button labeled "I'm not paying attention"
Code behind "I'm not paying attention":
msgbox "Please pay attention and click the correct button"
User generated image

Avatar of rjef

ASKER

thanks
You’re welcome and I’m glad I was able to help.

If you expand the “Full Biography" section of my profile you’ll find links to some articles I’ve written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange Most Valuable Expert (MVE) 2015, 2017
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2019
              Experts Exchange Top Expert VBA 2018, 2019
              Experts Exchange Distinguished Expert in Excel 2018
Avatar of rjef

ASKER

thanks for working Sunday!!