启动画面,VB.NET MDI APP - 奇怪的问题 [英] splash screen, VB.NET MDI APP--wierd problem

查看:78
本文介绍了启动画面,VB.NET MDI APP - 奇怪的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的vb.net应用程序制作一个启动画面。

这是一个mdi应用程序。


包括启动代码产生的奇怪结果。


不包括让事情变得更好。


也试过加载起泡形式:


*主要mdi父级的加载事件

*模块中的主要部分

*我自己的应用程序类

如果我加载了启动使用splashform.show形成

然后使用showdialog加载MDI主窗体。


显示对话框似乎不是(模态/无模式 - 可以记住一句话 - 没有

坚持下去

它只是在加载后不久退出 - 可能是在处理完form_load后

代码 - 继续.showdialog之后的行。


有没有人有任何想法。


启动表并不是真正复杂的 - 有一个计时器关闭。


在VB.NET中使用启动画面的正确方法是什么?


我希望它首先展示但不禁止加载主应用程序。


谢谢,


Shane

I am trying to make a splash screen for my vb.net app.
It is an mdi app.

including the splash code produces wierd results.

not inluding makes things fine.

Also have tried loading the splash form from:

* load event of main mdi parent
* sub main in a module
* my own application class
if I load the splash form using splashform.show
and then load MDI main form using showdialog.

show dialog doesn''t seem to be (modal/modeless--can''t remember term--doesn''t
stick around)
it just exits shortly after loading--probably after processing form_load
code--and continues with the line after .showdialog.

Does anyone have any ideas.

Splash form is not real complicated--has a timer to close.

What is the proper way to do a splash screen in VB.NET?

I want it to show first thing but not prohibit loading of main app.

Thanks,

Shane

推荐答案

后续想法...

我对启动画面的想法不是浪费加载时间使用.showdialog


但要占用一个不耐烦的用户几秒钟并显示所需的信息

,而实际交易正在加载。


Shane


" SStory" <钍******* @ TAKEOUTTHISSPAMBUSTERsofthome.net>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...
follow-up thought...

my idea of a splash screen isn''t to waste load time using .showdialog

but to occupy an impatient user for a few seconds and display needed info
while the real deal is loading.

Shane

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
我是试图为我的vb.net应用程序制作启动画面。
这是一个mdi应用程序。

包括启动代码会产生奇怪的结果。

不包括make好的东西。

还试过加载以下的启动表格:

*加载主要mdi父级的事件
* sub main in a module
*我自己的应用程序类
如果我使用splashform.show加载启动表单
然后使用showdialog加载MDI主窗体。

显示对话框似乎不是(模态) /无模式 - 不记得
术语 - 并没有坚持下去。
它只是在加载后不久退出 - 可能是在处理了form_load
代码之后 - 并继续.showdialog之后的行。

有没有人有任何想法。

飞溅形式并不是真正的复杂 - 有一个计时器关闭。

什么是在VB.NE中进行启动画面的正确方法T?

我希望它首先显示但不禁止加载主应用程序。

谢谢,

Shane
I am trying to make a splash screen for my vb.net app.
It is an mdi app.

including the splash code produces wierd results.

not inluding makes things fine.

Also have tried loading the splash form from:

* load event of main mdi parent
* sub main in a module
* my own application class
if I load the splash form using splashform.show
and then load MDI main form using showdialog.

show dialog doesn''t seem to be (modal/modeless--can''t remember term--doesn''t stick around)
it just exits shortly after loading--probably after processing form_load
code--and continues with the line after .showdialog.

Does anyone have any ideas.

Splash form is not real complicated--has a timer to close.

What is the proper way to do a splash screen in VB.NET?

I want it to show first thing but not prohibit loading of main app.

Thanks,

Shane



阅读本文:

http://www.codeproject.com/csharp/Pr...asp#xx670031xx


它'' C#代码,但它很好地解释了您需要的所有概念。支付

特别注意它所说的线程。这将使用.showdialog加载你的

浪费时间加载。问题。


Erik


" SStory" <钍******* @ TAKEOUTTHISSPAMBUSTERsofthome.net>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...
Read this:

http://www.codeproject.com/csharp/Pr...asp#xx670031xx

It''s C# code but it explains all the concepts you need very well. Pay
particular attention to what it says about threading. This will adress your
"waste time loading using .showdialog" issue.

Erik

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
我是试图为我的vb.net应用程序制作启动画面。
这是一个mdi应用程序。

包括启动代码会产生奇怪的结果。

不包括make好的东西。

还试过加载以下的启动表格:

*加载主要mdi父级的事件
* sub main in a module
*我自己的应用程序类
如果我使用splashform.show加载启动表单
然后使用showdialog加载MDI主窗体。

显示对话框似乎不是(模态) /无模式 - 不记得
术语 - 并没有坚持下去。
它只是在加载后不久退出 - 可能是在处理了form_load
代码之后 - 并继续.showdialog之后的行。

有没有人有任何想法。

飞溅形式并不是真正的复杂 - 有一个计时器关闭。

什么是在VB.NE中进行启动画面的正确方法T?

我希望它首先显示但不禁止加载主应用程序。

谢谢,

Shane
I am trying to make a splash screen for my vb.net app.
It is an mdi app.

including the splash code produces wierd results.

not inluding makes things fine.

Also have tried loading the splash form from:

* load event of main mdi parent
* sub main in a module
* my own application class
if I load the splash form using splashform.show
and then load MDI main form using showdialog.

show dialog doesn''t seem to be (modal/modeless--can''t remember term--doesn''t stick around)
it just exits shortly after loading--probably after processing form_load
code--and continues with the line after .showdialog.

Does anyone have any ideas.

Splash form is not real complicated--has a timer to close.

What is the proper way to do a splash screen in VB.NET?

I want it to show first thing but not prohibit loading of main app.

Thanks,

Shane



" SStory" <钍******* @ TAKEOUTTHISSPAMBUSTERsofthome.net> schrieb
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> schrieb
后续想法...

我对启动画面的想法不是浪费时间使用
.showdialog
<但是要占用一个不耐烦的用户几秒钟,并在真正的交易加载时显示所需的信息。
follow-up thought...

my idea of a splash screen isn''t to waste load time using
.showdialog

but to occupy an impatient user for a few seconds and display needed
info while the real deal is loading.



这段代码有帮助吗?

http://groups.google.com/gr*********..tngp13.phx.gbl

-

Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


Does this code help?

http://groups.google.com/gr*********...tngp13.phx.gbl
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


这篇关于启动画面,VB.NET MDI APP - 奇怪的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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