thielj / MetroFramework

Metro UI of Windows 8 for .NET Windows Forms applications
http://thielj.github.io/MetroFramework
Other
396 stars 225 forks source link

Inconsistencies with metro controls from windows forms controls #122

Open mmrk09 opened 4 years ago

mmrk09 commented 4 years ago

_Load events aren't happening on the same sequence anymore. Metro controls are calling _Load on innitializecomponents before information is available and code that worked fine on Windows forms controls just upgrading to metro seems to break them.

I also realized they don't inherit the same base classes, like I can't cast a metro text box to TextBoxBase and retrieve a text value, that code now crashes for invalid cast but should be similar to text box in windows forms control no?

This specific case was creating a control dynamically and then adding it / rendering it, so during construction and initialize components it seemed to fire load but moving code to OnPaint fixed that it just seemed strange it behaved differently then windows forms using the exact same code.