我想在选择索引上显示这些组合框!任何的想法 [英] i want to show these combo box on select index! Any idea

查看:70
本文介绍了我想在选择索引上显示这些组合框!任何的想法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) //combobox Select Index
       {
           if (ddl_CircularType != 'Send to Individual') //Condition
           {
               ddl_Department.Enabled = true;  
//i want to show this value on screen when i select this value in combobox2
           }
           else if (ddl_CircularType !='Send to Particular Department')
           {
               ddl_Department.Enabled = true;
               ddl_EmployeeID.Enabled=true;
               ddl_EmployeeName.Enabled=true;
           }
           else if (ddl_CircularType != 'Send to All Employee')
           {
               ddl_Department.Enabled = true;
                ddl_EmployeeID.Enabled=true;
               ddl_EmployeeName.Enabled=true;
           }

       }

推荐答案

尝试:

Try:
if (ddl_CircularType != "Send to Individual")
           {
               ddl_Department.Visible = true;
           }


这篇关于我想在选择索引上显示这些组合框!任何的想法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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