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

1

Hello.

In VBA excel has a very cool feature.

Application.ScreenUpdating = False

Application.ScreenUpdating = True

This prevents you from displaying the screen being mounted to the user and show only after everything is loaded.

I wanted something like this in C #. I have some forms with lots of controls and it's a little time consuming to load. It shows the assembly of each component.

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

From now on, thank you to anyone who can help with this.

Att.

    
asked by anonymous 20.01.2016 / 18:32

1 answer

0

I discovered the reason for the delay. I had placed the load of the database and the other modifiers in the "InitializeComponent ();" which is the form's constructor. Then I opened the form_Load event (object sender, EventArgs and), which is the block that runs after the form is loaded, and I put all modifier code there and also the database query. What difference! Now it was fast.

    
05.08.2016 / 20:33