消息框有两个选项! [英] Message Box with two options!

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

问题描述

基本上,我想在用户点击添加按钮时弹出一个消息框。



我希望消息框显示这个



您想要添加机票或优惠券吗?



那么两个选项是Ticket和Voucher,然后依赖在用户点击的选项上,它会打开一个表单。例如



如果用户选择Ticket,它会打开一张优惠券表格,它会添加优惠券。



谢谢,

Basicaly, i want a message box to pop up when the user clicks the add button.

I want the message box to display this

Do you want to add a Ticket or a Voucher?

Then the two options to be Ticket and Voucher, then depending on what option the user clicks, it opens a form. for example

if the user picks Ticket, it opens up a voucher form, it adds vouchers.

Thanks,

推荐答案

您可以根据自己的喜好创建窗口/窗体并将其作为模态运行。它取决于您使用的UI库/框架,但通常这是对 ShowDialog 的调用。这就是全部。



-SA
You can create a window/form at your liking and run it as a modal one. It depends on the UI library/framework you use, but usually this is a call to ShowDialog. That's all.

—SA


这篇关于消息框有两个选项!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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