What's the substitute for doing this in WinForms?