answersLogoWhite

0


Best Answer

BtnShow is the (user-defined) name of an object. The prefix "Btn" implies the object is a button and it presumably has the caption "Show". All objects have an Enabled property which can be set to true or false. If true, the button object will respond to mouse-clicks and other events (such as keyboard events). If false, the button object will be disabled (visually, it will be appear greyed-out) and becomes unresponsive.

Clicking a "Show" button will typically reveal another object (such as another form). The "Show" button becomes redundant at that point thus it makes sense to disable it by setting Enabledto false whenever it is clicked.

Obviously, the button needs to be re-enabled when the other object is subsequently hidden or closed by the user, thus you will need to set up an event handler for the other object's close event (such as FormClosed if the other object is a form). The event handler simply needs to set the button's Enabledproperty back to true.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does BtnShow.EnabledFalse mean?
Write your answer...
Submit
Still have questions?
magnify glass
imp