如何设置文本框不可编辑 [英] How to set textbox non editable

查看:111
本文介绍了如何设置文本框不可编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Guys ..

我正在制作费用管理系统,在此我想设置文本框不可编辑但依赖于组合框,如果付款已满,则文本框应该是不可编辑的,如果付款是分期付款然后文本框将是可编辑的。

如何做到这一点..

感谢高级。

Hello Guys..
I am making FEE MANAGEMENT SYSTEM,in this i want to set textbox non editable but depend on combobox,If payment is full then the textbox should be non editable and if payment is installment then textbox will editable.
How to do this..
Thanks in advanced.

推荐答案

取决于ComboBox选择的项目 .... 设置TextBox控件的 ReadOnly 属性 判断对错 ..



这样可以防止TextBox进一步发生编辑 取决于您在问题中提到的所需条件
depending on ComboBox selected Item.... SET the ReadOnly property of TextBox control either True or False..

This will let you prevent the TextBox from further editing depending upon required conditions as you mentioned in you problem


这篇关于如何设置文本框不可编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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