[DefaultEvent("Click")]
public partial class UPageButton : UserControl
{
public UPageButton()
{
InitializeComponent();
}
/// <summary>
/// 按钮文本
/// </summary>
public string BtnText
{
get { return lblText.Text; }
set { lblText.Text = value; }
}
public override Color ForeColor { get => lblText.ForeColor; set => lblText.ForeColor = value; }
protected override void OnClick(EventArgs e)
{
lblText.ForeColor = Color.FromArgb(45, 50, 116);
base.OnClick(e);
}
private void lblText_Click(object sender, EventArgs e)
{
this.OnClick(e);
}
}
(更新时间)2021年5月20日 仓库温控系统(Winform) 16 扩展控件-PageButton
原创
©著作权归作者所有:来自51CTO博客作者愚公搬代码的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
acess批量修改数据 excel导入
在大多数软件开发项目中,有一点需要使应用程序开始与其他应用程序或第三方组件通信。 无论是发送电子邮件通知,调用外部api,写入文件还是将数据从一个地方迁移到另一个地方,您都可以推出自己的解决方案或利用现有框架。 对于Java生态系统中的现有框架,我们可以发现Tibco BusinessWorks和Mule ESB ,另一方面是Spring Integration和Apache Camel
acess批量修改数据 excel导入 java python spring boot elasticsearch