How to turn Button poperty to be always invisible after its on click event

Hamatto

Member
Local time
Tomorrow, 00:00
Joined
Jun 17, 2024
Messages
40
Hello friends,
Please I want your help in this attached file
it is a command button cmd1, it turns invisible after click ,but after I close and re open the form ,I found the cmd1 return visible
I want command button cmd1 still invisible even I re open the Form
note: I turn focus to cmd2 to be able to invisible cmd2
Thanks a lot for your help friends
 

Attachments

add a dummy textbox (text1) and set its height and width to 0.
then setfocus on it when you press cmd1 button and then you set cmd1.Visible = False
 

Attachments

sorry, you need to save the State of cmd1 to a table (i added tblButton on your demo).
and on the Load event of the form set cmd1 visible property using DLookup.
and on the Unload event of the form, again update the table.
 

Attachments

sorry, you need to save the State of cmd1 to a table (i added tblButton on your demo).
and on the Load event of the form set cmd1 visible property using DLookup.
and on the Unload event of the form, again update the table.
Thanks a lot. Thats exactly what I need:)(y)
 

Users who are viewing this thread

Back
Top Bottom