If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[RESOLVED] Do While loop for Button

Hi all,

I am using visual studio in form mode, where I am using a label and a button. The label is named as X. Now i want the label to change to Y while the button is pressed. When it is released, it will be re-named to X.

And then on the design form, click on the "button4" and select the list of events (the little lightening icon near the properties).
scroll down to the events "MouseDown" and "MouseUp" and select the relevant methods created.