public Form1() { InitializeComponent(); panel2.MouseHover += panel2Hover; } public async void Animation_Async1() { int Height = panel2.Size.Height; // +10; while (panelanimatoin.Size.Height < Height) / { await Task.Delay(1); panelanimatoin.Size = new Size(panelanimatoin.Width, panelanimatoin.Size.Height + 1); } } private void panel2Hover(object sender, EventArgs e) { Animation_Async1(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)