在C#窗口应用程序中的按钮上查找语法 [英] find syntax on the button in c# window application

查看:92
本文介绍了在C#窗口应用程序中的按钮上查找语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c#窗口应用程序中查找按钮单击的语法

find syntax on the button click in c# window application

推荐答案

在C#win表单应用程序中,单击处理程序已连接到表单源代码文件中.您可以在项目资源管理器中找到这些文件.

使用Ctrl + F和在当前项目中查找"来查找处理程序的连接位置.

或者,在项目的设计图面上单击控件后,在属性窗口中查看,或双击控件进行钻取(如果未动态添加事件).

欢呼.
In C# win forms apps the click handler is wired up in your form source code files. You can find these files in your project explorer.

Use Ctrl+F and "find in current project" to find where the handler is wired up.

Alternatively, look in the properties window after clicking the control on the design surface in your project, or double-click the control to drill in (if your event is not added dynamically).

Cheers.


Button.Text将为您提供按钮标题.要分析该文本的语法,您首先需要找出字幕所用的语言.对于平凡的文本,构建一个用于分析字幕的小型解析器应该不那么困难.

如果您希望得到其他答案,则最好返回并编辑您的问题.请尽可能具体,以这种方式获得更好的答案.

最好的问候,

—MRB
Button.Text will give you the buttons caption. To analyze the syntax of that text you first need to find out what language that caption is in. For trivial texts it shouldn''t be that hard to build a small parser that will analyze the caption.

If you expected some other kind of answer, you''d better go back and edit your question. Please be as specific as you can as you''re bound to receive better answers that way.

Best Regards,

—MRB


我假设您想知道如何在Windows Form中设置Button的click事件,如果是这种情况,请访问以下网址网站,

事件处理 [ 按钮类 [ ^ ]

希望对您有所帮助:)
I assume you would like to know how to set up click event for Button in Windows Form, if that''s the situation then please visit following sites,

Event Handling[^]
Button Class[^]

Hope it will help you :)


这篇关于在C#窗口应用程序中的按钮上查找语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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