dotnetmonitor.com |
|
||||||||||||
| Problem: The code generated for visual
inheritance (class Form2 : Form1) is actually not that efficient, as the
constructor for the base form executes, then the constructor for the derived
form executes. This essentially forces two layouts as ResumeLayout is called on
the form twice. Visual Inheritance also has problems for localization, as the
localization tools dont work well with this kind of situation.
Solution: For perf reasons, if you can avoid using it, this is the best solution. If you must, you may want to consider using a base form and swapping in a panel with the derived controls as needed |
||||||||||||
|
||||||||||||