如何在c#中更改单个项目的用户控件属性 [英] how to change a single item's property of user control in c#

查看:78
本文介绍了如何在c#中更改单个项目的用户控件属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个带有多个标签的用户控件...我在窗体上添加了这个。

现在我只想更改c#中用户控件中使用的单一标签颜色...

我该怎么办.. ????

你可以帮我plz

i created a user control with multiple label... and i added this on window form.
Now I want to change only single label color used in user control in c#...
what should i do..????
can you help me plz

推荐答案

我的猜测是,你在控件中放置了一些标签而没有将它们公开。您应该这样做或以某种方式封装它们。
My guess would be, that you placed some labels in a control and didn't made them public. You should do so or encapsulate them in a way.


这篇关于如何在c#中更改单个项目的用户控件属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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