以编程方式在视觉上按下表单上的按钮 [英] Visually pressing down a Button on a form programmatically

查看:67
本文介绍了以编程方式在视觉上按下表单上的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.
我想知道是否可以按下通过代码在视觉上上下移动的按钮?
我一直在谷歌上搜索,发现了很多单击事件,但是它们并没有直观地按下表单上的按钮.

Best Per.

Hi.
I wonder if it is possible to press a Button that visually goes down and up by code?
I´ve been googling and find a lot of click events, but they don´t create a visual press down of the button on the form.

Best Per.

推荐答案

您可以使用复选框而不是按钮来设置它的
You can use a checkbox instead of a button and set it''s Appearance[^] to look like a button. It''s checked state will then appear to be pressed.


我查看了一下,找到了一些有趣的答案.放弃了很多使用WIN 32 GUI的豌豆来吸引情人和更具可操纵性的鳕鱼.但是CLR无法管理这种方式.
任何人都具有使用unmanage kod的经验.它会产生问题吗?
最佳每封
I have looked in to it, and found som interesting answers. Quit a lot of peaple use WIN 32 GUI´s to get in to a lover and more manuverable kod. But this way is unmanage by CLR.
Any one have experience of using unmanage kod. Do it create problems?
Best Per


这篇关于以编程方式在视觉上按下表单上的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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