Windows Forms User Controls - Everything That Looks Like ASP.NET User Controls?

In ASP.NET, you have something called "User Controls" that allows you to create a custom control that can be reused on a website.

Now I am starting to develop a Windows application in .NET 2.0 and (surprisingly), I cannot find similar functionality.

What I would like to do is: - create a new user control in the designer; - Drag and drop several controls (e.g. buttons, text fields); - Save and be able to reuse these user controls by dragging it into various dialogs.

Any suggestion would be greatly appreciated.

Thanks Giammarco Schisani

+3
source share
1 answer

Usercontrol

Walkthrough for creating, adding and using UserControls in WinForms applications: http://www.devcity.net/Articles/87/ssteps_customcontrol.aspx

The main steps:

  • Creating a library project
  • Add or configure a custom UserControl by default
  • Build a project
  • Add New Windows Application Project
  • Open the form in the designer: a new control will appear.
+5
source

Source: https://habr.com/ru/post/1706522/


All Articles