1
Hello.
My doubt is in VB-NET
How can I leave Enabled true, an image that is Enabled false by clicking on it itself. It is possible?
1
Hello.
My doubt is in VB-NET
How can I leave Enabled true, an image that is Enabled false by clicking on it itself. It is possible?
0
Good afternoon, you can do this by manipulating via javascript, follow an example below:
function troca()
{
document.getElementById("imagem").style.display = 'none';
}
<!DOCTYPE html>
<html>
<body>
<p>Click na imagem...</p>
<img id="imagem" src="https://i.ytimg.com/vi/PrjrEZcQM7o/maxresdefault.jpg" onclick="troca()" style="display: normal" />
</body>
</html>
Browser other questions tagged vb.net
You are not signed in. Login or sign up in order to post.
I don’t understand how a Javascript answer can answer a Visual Basic question.
– CypherPotato
I answered you in javascript because it is much better the system to manipulate the field in the client than to go on the server to do this... But if you want VB. NET code I put....
– Wellington Araujo