Quantcast
Channel: Streamlining event code in visual studio - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Andrew Morton for Streamlining event code in visual studio

You can have more than one Handles item, like this:Private Sub Button_Enter(sender As Object, e As EventArgs) Handles _ Button1.MouseEnter, Button2.MouseEnter, Button3.MouseEnter, Button4.MouseEnter,...

View Article



Streamlining event code in visual studio

I'm pretty new with VB and I was wondering if there was a better way to write the following code. I have 6 buttons across the top of my form that I have changing colors when the mouse enters and leaves...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images