在确认消息框中需要帮助 [英] Need help in confirmation message box

查看:80
本文介绍了在确认消息框中需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我在删除数据时使用是/否/取消消息框..下面是代码



Hi all

I am using a yes/no/cancel message box while deleting a data..below is the code

Dim answer As String = MsgBox("Are you sure ???", MsgBoxStyle.YesNoCancel, MessageBoxOptions.RtlReading)





但是当我使用



but when i am using

MessageBoxOptions.RtlReading

MessageBoxImage.Question

,显示图标,显示框中标题栏中的一些数字..



你能告诉我这是什么问题..



谢谢

, instade of showing the icon it''s showing some numbers in the title bar of the box..

can you please tell me what is the problem..

Thank you

推荐答案

Dim result As DialogResult = MessageBox.Show("Are you sure ???","confirmation",MessageBoxButtons.YesNoCancel,MessageBoxIcon.Question)


第三个参数是标题。如果你想要是/否/取消和问号,你需要使用它们之间的+号如下:



The third parameter is the title. If you want yes/no/cancel and a question mark, you need to use the + sign between them like this:

Dim answer As String = MsgBox("Are you sure ???", MsgBoxStyle.YesNoCancel+MessageBoxOptions.RtlReading, "TITLE HERE")


这篇关于在确认消息框中需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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