如何使用UserControl [英] How to Use UserControl
本文介绍了如何使用UserControl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道tu是如何使用UserControl的.我从Add New Item-WindowsForm的项目列表中添加了UserControl1.cs.以下文档的代码:
I want to know how tu use the UserControl.I add an UserControl1.cs from the item list of the Add New Item-WindowsForm.The code of the document below:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace WindowsForm
{
public partial class UserControl1 : UserControl
{
public UserControl1()
{
InitializeComponent();
}
}
}
谁可以给我一个例子以及UserControl的一些文档.谢谢!
Who can give me an exmaple for it and some document for UserControl.Thanks!
推荐答案
要了解UserControl
,您应该浏览给定链接
使用C#进行用户控制 [
To Learn aboutUserControl
you should Navigate the Given Link
User Control With C#[^]
参考文献:
http://msdn.microsoft.com/en-us/library/aa302342.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/system. windows.forms.usercontrol.aspx [ ^ ]
References:
http://msdn.microsoft.com/en-us/library/aa302342.aspx[^]
http://msdn.microsoft.com/en-us/library/system.windows.forms.usercontrol.aspx[^]
^ ]
该网站指导您如何创建UserControl
http://msdn.microsoft.com/en-us/library/a6h7e207(v=VS.80).aspx[^]
This website is guide you how to create a UserControl
这篇关于如何使用UserControl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文