VB-NET Click on an element (click on yourself) enabled false, to be enabled true

Asked

Viewed 34 times

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 answer

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>

  • 2

    I don’t understand how a Javascript answer can answer a Visual Basic question.

  • 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....

Browser other questions tagged

You are not signed in. Login or sign up in order to post.