DotNetBar V9 SwitchButton控制问题 [英] DotNetBar V9 SwitchButton Control Problem

查看:324
本文介绍了DotNetBar V9 SwitchButton控制问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在我的计算机上安装了Dotnetbar v9并将其加载到visual studio.net中,没有任何问题。我在表单上添加了一些Switch按钮控件,因为我需要它来执行on和off功能。对于读这篇文章的人来说,它是一个动画按钮控件,可以左右滑动打开和关闭,但我似乎无法弄清楚这个对象的代码。我需要能够在程序加载或关闭时将其设置为开启,如果用户选择的话。



我知道这一定很简单,但我不熟悉一些新的控件,并且在使用dotnetbar的代码示例方面很少。 />


非常感谢你的时间....(期待答案)

I have just recently installed Dotnetbar v9 on my computer and loaded it into visual studio.net with no problems. I have added a few Switch button controls on the form because I need it to perform both on and off functions. For anyone reading this it is an animated button control that slides left and right for on and off but I cannot seem to figure out the code for this object. I need to be able to set it to on when the program loads or off if user chooses.

I know this must be simple but i am not familiar with some of the new controls and there is very little in the area of examples for code with dotnetbar.

thank you very much for your time....(looking forward to an answer)

推荐答案

你应该与创建它的人交谈 - DevComponents [ ^ ] - 他们应该提供技术支持,并且会比我们更了解他们的产品。如果没有,那就找另一个供应商并要求退款!
You should talk to the people who created it - DevComponents[^] - they should provide technical support and will know more about their product than we will. If they don't, then find another supplier and demand your money back!


解决方案1 ​​

if(switchButton.Value == true)

{

pictureBox.Show();

}

else if(switchButton.Value == false)

{

pictureBox.Hide();

}



解决方案2

if(switchButton.Value == true)

{

switchButton.SetValue(false,0)

}
solution 1
if(switchButton.Value==true)
{
pictureBox.Show();
}
else if(switchButton.Value==false)
{
pictureBox.Hide();
}

solution2
if(switchButton.Value==true)
{
switchButton.SetValue(false,0)
}


这篇关于DotNetBar V9 SwitchButton控制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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