用户控制 [英] user control

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

问题描述

如何将用户控件中的值和信息交换为< g class =" gr_ gr_55 gr-alert gr_gramm gr_hide gr_inline_cards gr_run_anim语法multiReplace replaceWithoutSep replaceWithoutSep"数据-GR-ID =" 55" id =" 55">另一个
使用按钮< / g> 不在主窗体中但在用户控件内  ??

how to exchange values and info from user control to <g class="gr_ gr_55 gr-alert gr_gramm gr_hide gr_inline_cards gr_run_anim Grammar multiReplace replaceWithoutSep replaceWithoutSep" data-gr-id="55" id="55">another using buttons</g> not in the main form but inside the user control  ??

推荐答案

在UserControl中,声明要交换的值的公共属性。您将能够以与通常访问标准
内置控件的属性相同的方式从包含UserControl的表单中访问属性。
Inside the UserControl, declare public properties for the values that you want to exchange. You will be able to access the properties from within the form that contains the UserControl in the same way that you normally access the properties of the standard built-in controls.


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

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