从组合框选择中打开表单 [英] Open a form from a combobox selection

查看:55
本文介绍了从组合框选择中打开表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在form1中,我有一个带有2个值的组合框。当用户选择"AAA"时,我希望form2打开,当"BBB"时选择我希望form2打开。

In form1 I have a combobox with 2 values. When the user selects "AAA" i want form2 to open,when "BBB" is selected i want form2 to open.

请给我一个示例代码,以便我可以调整我的。

Please show me an example code so i can adjust mine.

很多apprichiated

Much apprichiated

推荐答案

>在form1中,我有一个带有2个值的组合框。当用户选择"AAA"时,我希望form2打开,当"BBB"时我希望form2打开。

>In form1 I have a combobox with 2 values. When the user selects "AAA" i want form2 to open,when "BBB" is selected i want form2 to open.

所以,总是打开form2:)

So, always open form2 :)

大概你不是故意要写两次form2吗?

Presumably you didn't mean to wrote form2 twice?

问题的哪个方面你遇到问题?

Which aspect of your problem are you having a problem with?

戴夫


这篇关于从组合框选择中打开表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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