I've been looking through stack overflow for almost an hour now trying to find a working way to select a random button and and change the .value of this button. I know how to do it in javascript, which is document.getElementByID("btnAns"+randomnumber").value("The button") But I cannot find anywhere that does anything similar, and that actually works using Visual Studio 2017. I know all the basics like creating a random number, which I've already done, I just cannot find anything that works on the current version that I'm using.
TL;DR: Trying to use c# to change the button.value of a random button. I only have 4 buttons.
Thanks, Horry
Aucun commentaire:
Enregistrer un commentaire