How to detect a Button is clicked in VB.net

Posted on 2006-05-31
Medium Priority
Last Modified: 2006-11-18
What I need to do is disable functionality within a particular subroutine if a certain button is clicked on the screen. I am thinking of setting a property of  a shared class or creating a global variable and setting it to true when the button is clicked. Can someone tell me the most efficient way of doing this?
Question by:anwarmir
1 Comment

Accepted Solution

manch earned 500 total points
ID: 16796749
Instead of using a Command Button try to use the Radio Button

and change the Appearance property of the Radio Button to Button (By Default the appearance property of the Radio Buttion is set to Normal)
(Now it will look like a Command Button)

On evey click on this button it will maintain the checked status which u can easily fetch


Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question