By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,959 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,959 IT Pros & Developers. It's quick & easy.

button focus

pentahari
P: 60
In VB6, I have created the form look like the message box. but one problem has occurred that the one button had already focused but the rectangle focus symbol appeared on the focused button. But the msgbox don't have the rectangle focus symbol on the focused button.

For ex:
Expand|Select|Wrap|Line Numbers
  1. MsgBox "Are you sure?", vbYesNo
The above msgbox automatically focus the yes button but no rectangle symbol.
Jul 10 '08 #1
Share this Question
Share on Google+
3 Replies


debasisdas
Expert 5K+
P: 8,127
please repost clearly.


i can't understand what is the exact problem.
Jul 10 '08 #2

QVeen72
Expert 100+
P: 1,445
Hi,

You can set default focus button using :

MsgBox "Are you sure?", vbYesNo + vbDefaultButton2

When shown, Second button gets the Focus..

Regards
Veena
Jul 10 '08 #3

pentahari
P: 60
Hi,

You can set default focus button using :

MsgBox "Are you sure?", vbYesNo + vbDefaultButton2

When shown, Second button gets the Focus..

Regards
Veena
Your reply is very useful for my project. sorry to all for the trouble i will repost my question clearly soon.
Jul 11 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.