mare1980k1 Member Licensed User Longtime User Feb 13, 2018 #1 Hello, How can i change button1.Enabled = False color? It stays the same as if it's true when i set custom color on it, any help how to change button color when it's disabled?
Hello, How can i change button1.Enabled = False color? It stays the same as if it's true when i set custom color on it, any help how to change button color when it's disabled?
Yvon Steinthal Active Member Licensed User Longtime User Feb 13, 2018 #2 I do it manually with a global boolean ... Upvote 0
mare1980k1 Member Licensed User Longtime User Feb 13, 2018 #3 Yes, i do it too, but i want to change it's design when it's false.... Or u mean do it manually in the code? If enabled = false then color = black for example? Upvote 0
Yes, i do it too, but i want to change it's design when it's false.... Or u mean do it manually in the code? If enabled = false then color = black for example?
Yvon Steinthal Active Member Licensed User Longtime User Feb 13, 2018 #4 Yes as you pointed it out something like... Code: Copy Dim btnenabled as boolean = False 'whatever you want it to be at first Sub btn_Click if(btnenabled)Then btn.color = colors.green btnenabled = false else btn.color = colors.red btnenabled = true end if end sub Upvote 0
Yes as you pointed it out something like... Code: Copy Dim btnenabled as boolean = False 'whatever you want it to be at first Sub btn_Click if(btnenabled)Then btn.color = colors.green btnenabled = false else btn.color = colors.red btnenabled = true end if end sub