VB.NET WinForm加载问题 [英] VB.NET WinForm Loading issue

查看:80
本文介绍了VB.NET WinForm加载问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题:

当显示vb.net的Windows形式时,我可以看到所有的组合/网格/对象/控件都已放置和送入.几分之一秒(在快速机器中).

我所有的对象放置和加载都是在Activated事件中进行的.


是否有一种方法可以先加载所有内容(不显示),然后同时显示所有内容?

预先谢谢您.

My problem:

When show the windows form of vb.net , i can see all combos / grids / objects/controls being placed and feeded. Its a fraction of second (in fast machines).

All my objects placing and loading are made in the Activated event.


Is there a method for loading everything first (not showing) and then display all at the same time?

Thank you in advance.

推荐答案

嗨 尝试在表单加载事件中执行相同的操作.

也可以尝试暂停表单的形式.

如果没有任何效果,则隐藏所有控件.
喂入并放置它们后,再显示它们.
Hi Try doing the same thing in form load event.

also try suspendlayout of the form.

If nothing works, just hide all the controls.
Once they are feeded and positioned then show them.


这篇关于VB.NET WinForm加载问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆