开发者

Add user control to tab page

How to add user control to tab page from Designer开发者_运维百科. Is it possible or it can be done only from code?


Any usercontrols that you have created usually shows up in the "[Your Project Name] Component" tab in the toolbox. you might need to rebuild the project to make sure it refreshes fine


Yes it can be done in the designer.

Your user control can be registered in the Toolbox and subsequently selected and dropped onto a form.

The user control need not be kept in a separate project. If it is not visible in the Toolbox, you can add them manually by 'Choose Items...' option (in VS2010 - think it is 'Customize...' in 2008)


Keep the UserControl in a separate project. Drag and drop it from the "My User Controls" section of the toolbox.

Read the Testing Your Contol section in the following article: http://msdn.microsoft.com/en-us/library/a6h7e207(v=vs.71).aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜