C# - Do not show form being mounted for the user

Asked

Viewed 61 times

1

Hello.

In excel VBA has a very cool feature.

Application.Screenupdating = False

Application.Screenupdating = True

This prevents showing the screen being mounted to the user and show only after all loaded.

I wanted something like this in C#. I have some forms with a lot of controls and it’s a little time-consuming to load. It keeps showing the assembly of each component.

Can you do that? Place a panel showing "Loading..." while the form is being assembled and then enable its view?

From now on, I thank anyone who can help with that.

Att.

  • Well, young man, if your fluffy’s that slow, there must be something wrong with him, huh? Reading your explanation, while an action occurs, another would have to be executed... I thought about the Background Worker (http://www.macoratti.net/13/07/c_backg1.htm) do you know? Get close to what you need?

1 answer

0

I figured out what’s taking so long. I had placed the bank load and the other modifiers in the block "Initializecomponent();" which is the form builder. Then I opened the event form_Load(Object Sender, Eventargs and), which is the block that runs after the form is loaded, and put all the modifier code there and also the database query. What a difference! Now it’s fast.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.