In the previous introduction of a few of the development of CRM system in the essay, which are integrated with a number of page functions, including a multiple-document interface, as well as customer-related information page display, this module is to use the DevExpress control of the Xtratabpage control dynamic loading implementation, This article mainly introduces two kinds of dynamic loading, one is to the user control (UserControl) module dynamic loading, one is to the ordinary form (form) dynamic loading, through these two ways, we can dynamically realize very rich interface effect.
1. Dynamic loading of the user control (UserControl) module in the tab control
Refer to a lot of CRM system, is generally the CRM system in the customer-related information to the bottom, this is also a common interface layout, because the customer-related information A lot, we can put in a multiple document way below the lower right corner of the layout panel, because the entire program is an MDI multiple document interface, It is not possible to implement another MDI multiple document rendering in a subform, but we can find a way to put them in a TabPage page so that we can dynamically load and implement the interface layout we need.
Since we want to dynamically load customer-related information modules, each module can be created and maintained independently of the user control, and we create the relevant user controls in the project project, as shown below.