Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27329

resetting question!!!!

$
0
0
hello!



my question is how to reset a private sub, I'm not sure if I'm saying it right, but here is an example,


Code:

Private Sub btnOne_Click (...) Handles btnOne.Click 
 
lblOne.ForeColor = Color.red 
lblTwo.ForeColor = Color.red 
 
End Sub 
 
Private Sub btnTwo_Click (...) Handles btnTwo.Click 
 
lblOne.ForeColor = Color.Black 
 
End Sub 

here when i click btnOne, lblOne & lblTwo changes their color to red, when i click btnTwo after that lblOne will change to black but lblTwo will remain red



is there a away to reset to default what btnOne did when i click btnTwo ?

Viewing all articles
Browse latest Browse all 27329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>