如何激活某些字段并停用其他字段以进行vb.net中的更改 [英] How to activate some field and deactivate others for changes in vb.net

查看:76
本文介绍了如何激活某些字段并停用其他字段以进行vb.net中的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我希望有人帮助我,我想知道点击按钮时可以使用的代码,以便激活并选择我想要进行更改的文本框字段并停用其他内容。



我还想知道当有人输入数据或写东西时如何制作描述性信息,以帮助他或她知道该字段究竟是什么意思卵形输入系统中输入错误类型的数据。



好​​的,请提前感谢您,希望您能帮助我。



ok

Hello guys, I would like someone to help me, I want to know codes that I can use when click on button so that activate and select the field of text box which I want to make changes and deactivate others.

I would like also to know how to make descriptive message when someone is entered data or write something, to help him or her know what exactly the field is mean to do, to ovoid an wrong type of data to be entered in the system.

Ok, let thank you in advance hoping that you will help me out.

ok

推荐答案

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    'Set up a quick description
    ToolTip1.SetToolTip(TextBox1, "Enter a positive number")
    'TO activate
    TextBox1.Enabled = True
    'To Select the control
    TextBox1.Focus()
    'TO deactivat
    TextBox1.Enabled = False

End Sub





有关快速说明,请将ToolTip控件放在表单上。



For the quick description, place the ToolTip control onto your form.


这篇关于如何激活某些字段并停用其他字段以进行vb.net中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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