如何在Windows窗体中动态调用用户控件。 [英] how dynamically call user control in windows form.

查看:56
本文介绍了如何在Windows窗体中动态调用用户控件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows窗体中动态调用用户控件。请帮助我。

解决方案

就像任何其他控件一样:

< pre lang =c#> MyUserControl muc = new MyUserControl();
Controls.Add(muc);



什么给你带来困难?


看看:

http://www.akadia.com/services/dotnet_user_controls.html [ ^ ]

http://msdn.microsoft.com/en-us/library/aa302342.aspx [ ^ ]

希望这可以帮到你

how can i dynamically call user control in windows form.Kindly help me.

解决方案

Just like any other control:

MyUserControl muc = new MyUserControl();
Controls.Add(muc);


What is giving you difficulty?


have a look at :
http://www.akadia.com/services/dotnet_user_controls.html[^]
http://msdn.microsoft.com/en-us/library/aa302342.aspx[^]
hope this helps you.


这篇关于如何在Windows窗体中动态调用用户控件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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