有关在子例程中使用变量来调用usercontrol及其属性的问题。 [英] Question regarding using a variable in a subroutine to call a usercontrol and it's properties.

查看:62
本文介绍了有关在子例程中使用变量来调用usercontrol及其属性的问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#winform中引入了一些用户控件,每次点击主页面上的按钮时,我基本上都在做同样的事情,如果有一个用户控件可见,它会调用一个属性该用户控制是否可以看到另一个用户控件
它调用该用户控件的属性,但由于按钮点击基本上发生同样的事情,无论哪个用户控件可见,我想保存代码空间并有子程序只使用不同的用户
控件名称和属性名称做同样的事情

I am bringing in a few user controls to my c# winform and I am basically doing the same thing every time I click a button on the main page if one user control is visible it calls a property of that user control if another user control is visible it calls a propertry of that user control but since basically the same thing is happening by the button click regardless which user control is visible I want to save code space and have a subroutine that does the same thing just using the different user control names and property names

谢谢

Debra有一个问题

Debra has a question

推荐答案

嗨Debra,

Hi Debra,

这是一个专门讨论Microsoft Project问题的论坛。答案。

This is a forum dedicated to Microsoft Project questions & answers.

请将您的问题发布到适当的论坛。

Please post your question to the appropriated forum.

问候。


这篇关于有关在子例程中使用变量来调用usercontrol及其属性的问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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