Is it possible to change the color of a button when you move your mouse onto the button? Like say before it was red and it can be changed to yellow?
Anyone can help me with the code?
You do things like that with controls' events. In this case with button's MouseEnter and MouseLeave events
Button1.BackColor = Color.Red Private Sub Button1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseEnter ' User moves mouse pointer over the button, change the color Button1.BackColor = Color.Yellow End Sub Private Sub Button1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseLeave ' User moved mouse pointer away from the button, change the color back to red Button1.BackColor = Color.Red End Sub
Set the initial button's color somewhere in your (form's) code. Then add those two event handlers to form's code part. The button's name has to be Button1. If its something else, change the name (Button1) from the code above.
Thank You So Much Teme64!!!!
Works very well!
Thank you very much my frnd ...
I facing problem to change color of DGV Row w.e.o Quantity of Remaining days. I tried it but i got error. PLease, check my code.
public void RowsColor() ...
I am trying get c# to select multiple nodes in XML. I'm not sure how to do this here is the xml code followed by c#:
<PackageTrackingInfo> <TrackingNumber>123456789</TrackingNumber> <PackageDestinationLocation> <City>Seattle</City> ...
So here is my problem laid out as simple as I can put it.
I cant combine multiple entities together that have related data but are different
(one database table ...