thielj / MetroFramework

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

Changing the style of a metroTile by clicking in another metroTile at runtime #35

Closed adrianabenicio closed 9 years ago

adrianabenicio commented 9 years ago

When I change the style of a metroTile by clicking in another metroTile at runtime, the new color is only set when the mouse passes over the component.

The code I'm using is simply: private void mtlClientes_Click(object sender, EventArgs e) { mtlProdutos.Style = MetroFramework.MetroColorStyle.Orange; }

adrianabenicio commented 9 years ago

Solved adding: mtlProdutos.Refresh();

zeeshan47 commented 9 years ago

have u tried changing forms border color ?

zeeshan47 commented 9 years ago

there is no refresh function for stylemanger ?

adrianabenicio commented 9 years ago

I solved the problem using mtlProdutos.Refresh();