How do I dynamically change Application Style settings at runtime?

[Infragistics] Tony Lombardo / Saturday, February 28, 2009

In Visual Basic:

Private Sub Page_Load(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Dim settings As AppStylingManager = AppStylingManager.Settings
	settings.StyleSetName = "Office2007Black"
End Sub

In C#:

private void Page_Load(object sender, System.EventArgs e)
{
	AppStylingManager settings = AppStylingManager.Settings;
	settings.StyleSetName = "Office2007Black";
}