I'm setting them during runtime, I'm kinda afraid that this will bog down my application eventually.
Is there a better way?
public MainForm()
{
InitializeComponent();
SetPictureBoxEvents();
}
private void SetPictureBoxEvents()
{
Andromeda.MouseEnter += new EventHandler(HeroMouseEnter);
Andromeda.MouseLeave += new EventHandler(HeroMouseLeave);
Engineer.MouseEnter += new EventHandler(HeroMouseEnter);
Engineer.MouseLeave += new EventHandler(HeroMouseLeave);
Nighthound.MouseEnter += new EventHandler(HeroMouseEnter);
Swiftblade.MouseEnter += new EventHandler(HeroMouseEnter);
}