如何检查文本框数据是一个表达式 [英] How can I check textbox data is a expression

查看:82
本文介绍了如何检查文本框数据是一个表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的winform应用程序中有一个文本框,文本框中包含数据,例如

(Companyid =< exp>)&&(userid =< exp>)

当用户点击< exp>如果是,它会显示一个对话框并获取价值并替换它。



我尝试过:



当用户点击< exp>时,我不知道如何打开对话框文本框上的文本

I have a textbox in my winform application and textbox contain data like
(Companyid=<exp>)&&(userid=<exp>)
When user click <exp> of companyid it will show a dialog box and get the value and replace it.

What I have tried:

I have no idea how to open dialog box when user click <exp> text on textbox

推荐答案

您只需要为Click事件添加事件处理程序,然后获取点击发生位置的详细信息。请参阅 TextBox类(System.Windows.Forms) [ ^ ]。
You just need to add an event handler for the Click event, and then get the details of where the click happened. See TextBox Class (System.Windows.Forms)[^].


这篇关于如何检查文本框数据是一个表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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