An object-oriented programming language developed by Microsoft that can be used in .NET.
What you are seeing may be related to how the custom UserControl handles its inner content area at design time and runtime, rather than to VB.NET itself.
In WinForms, controls can appear inside a custom control in the designer but still be missing when the application runs. This can happen if the controls placed inside the body panel are not saved into the generated form code, are added to the wrong parent container, or are removed or covered by the control's runtime layout.
To assist you better, could you please share:
- The target framework shown in the project properties, such as .NET Framework 4.8, .NET 8, or .NET 9.
- The code for the custom
UserControl, including its Designer file. - Any custom designer class used by the control.
- The relevant section of the form's
.Designer.vbfile where one of the disappearing controls is created and added.
The generated form code is especially useful because it shows whether Visual Studio is adding the control to the intended content area. Please remove any private project information before posting the code.
Once I can review those sections, I can help determine whether the issue is related to how the control is being saved, how the child controls are being parented, or how the layout is handled at runtime.