winforms工具条新建,保存,更新,删除按钮启用禁用状态 [英] winforms toolstrip new, save, update , delete buttons enable disable states

查看:84
本文介绍了winforms工具条新建,保存,更新,删除按钮启用禁用状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我创建了一个带有工具条控件的Winform,它具有新的,保存,更新和删除按钮。我第一次在运行模式下打开我的表单所有按钮应该处于禁用模式,除了新按钮...当我输入一些数据到这个表单然后只有我想启用保存按钮...但事情是如何知道表单何时处于编辑状态。我如何知道用户输入/编辑表格....

请帮帮我





问候,

Raju。 G

Dear All,

I have created one Winform with toolstrip control which is having new,save, update and delete buttons. for the first time I opened my form in the run mode all buttons should be in disable mode except new button... when i entered some data in to this form then only I want to enable save button... But thing is how to know when the form is in edit state. How I know user enter / edit the form....
Please help me


Regards,
Raju. G

推荐答案

您需要添加一些事件处理程序,以根据应用程序的状态设置启用/禁用状态。
You need to add some event handlers to set the enabled/disabled status, based on the status of your application.


这篇关于winforms工具条新建,保存,更新,删除按钮启用禁用状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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