如何在运行时以表格形式显示用户控件

如何在运行时以表格形式显示用户控件

本文介绍了如何在运行时以表格形式显示用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,
我需要在运行时以表格形式显示用户控件设计,使用一种表格我需要在运行时加载多个用户控件,请问有谁能尽快帮助我



在此先谢谢!!


我对这个任务是陌生的,可以指导我更多细节!!


I need to display user control design in form at run time , using one form i need to load several usercontrol in run time , can any one help me soon for me running out time



thanks in advance!!


I am new to this task can any guide me with more details Plz!!

can any 1 help me soon due to i am in end!!!

推荐答案

For i=1 to 10
  Dim uc as New MyUserControl
  'set location and other required properties of user control
  Me.Controls.Add(uc)
Next


Dim MyControl As UserControl


之后,将该控件添加到表单控件"中


After that add that control in your Form Controls

Me.Controls.Add(Me.MyControl)



这篇关于如何在运行时以表格形式显示用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 12:16