vb.net运行的时候怎么看不到界面,要运行结束才能看到?

[复制链接]
查看11 | 回复1 | 2005-7-29 15:27:00 | 显示全部楼层 |阅读模式
请教一个问题,我把处理程序写在form的load里面,发现vb.net要等到
数据全部做完才会显示界面,为什么? 怎么作才能先显示界面,再运行需要实现功能的代码?还有我在程序中添加了运行时候的进度条,同样在运行的时候看不到? 请各位大侠帮忙.
回复

使用道具 举报

千问 | 2005-7-29 15:27:00 | 显示全部楼层
Do not block in the load method to let the form to show first. Instead, create a backend thread (in load method) to load the data and display them in the form. This is more user friendly.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行