[Solved] Show/hide form's objects in unison
Posted: Sat Sep 16, 2023 6:06 pm
So, I have a form where there are a lot of elements (textboxes, labels…) that can be either hidden or shown in the same macro (enablevisible = true/false). But they do so (either hide or show) one by one, and not all at once, so when there are a lot together to be either shown or hid, it makes kinda like a “cascade” visual effect that is a bit ugly and terribly slow the bigger it is (up to 10 seconds). Is there any way to enable to either hide or show all at once?
My inicitial thoughts were an option to disable the graphics’ refresh, then reactivate it once the macro was finished in order not to show the cascade effect but coulnt find any method for that.
I also noticed that if at the beginning of the macro there’s a “msgbox”, the graphic refresh is instantaneous (but it may be and impression).
My inicitial thoughts were an option to disable the graphics’ refresh, then reactivate it once the macro was finished in order not to show the cascade effect but coulnt find any method for that.
I also noticed that if at the beginning of the macro there’s a “msgbox”, the graphic refresh is instantaneous (but it may be and impression).
Edit: Changed subject, was Slowness hiding/showing objects Make your post understandable by others -- MrProgrammer, forum moderator |