在msgbox中使用set focus [英] use set focus in msgbox

查看:125
本文介绍了在msgbox中使用set focus的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Basic 6.0中使用的是或否msgbox框.当msgbox出现时,其默认焦点是是"按钮.但是我希望它应该只关注否"按钮.

解决方案



使用此重载:
MessageBox.Show (文本",标题",MessageBoxButtons.YesNo,MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button2 )

Ralf


i am using yes or no msgbox box in visual basic 6.0. when the msgbox appear its default focus is Yes button. but i want that it should focus No button only.

解决方案

Hi,

Use this overload:
MessageBox.Show("text", "caption", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button2)

Ralf


这篇关于在msgbox中使用set focus的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆