卸载af表格 [英] Unloading af form
问题描述
我几周前试过了,但我会再试一次:D $ / b
我以前的VB6天可以使用卸载(表格)卸载表格
命令。
我尝试过关闭功能,但它会卸载整个项目。
我之所以要问的是我正在创建一个程序,我需要一个
启动画面(就像Word
等程序启动时出现的小屏幕),以及启动画面时已加载几秒钟
它应该被卸载(它不再用于任何用途)...我如何卸载
只是这个表格而不是整个项目。请记住,这个表单(
Splash-form)是触发下一个表单的表单,因此对于整个项目来说是父,或者是什么(我被告知
用关闭命令关闭这个表格它将关闭所有的儿童形式)
// Kian
*" peter hansen" < WO ** @ tell.you> scripsit:几周前我试过了,但我会再试一次:D
我老了VB6天,可以使用Unload卸载表单(表格)
命令。
我已经尝试过关闭功能,但它会卸载整个项目。
< http: //www.google.com/groups?selm=u%23xQOutWDHA.2100%40TK2MSFTNGP11.phx。 gbl>
-
Herfried K. Wagner [MVP]
< http://www.mvps.org / dotnet>
嗨彼得,
如果你使用其他方法可能答案更容易
>
创建一种主表单
创建表单
在主表单的加载事件中,你说
\\ \\\\
dim frm as new splashform
me.hide
frm.showdialog
me。 show
frm.dispose
///
这就是全部,
Cor
< blockquote class =post_quotes>
我老了VB6天,可以使用Unload(Form)
命令卸载表格。
我试过了Close-function但它'我将卸载整个项目。
我之所以要问的是我正在创建一个程序,我需要一个启动画面(就像Word这样的程序时出现的小屏幕
开始),当Splash-screen出现时应该卸载几个
秒的时间(它不再用于任何用途)......我如何卸载
这个表单而不是整个项目。请记住,这个表单(
Splash-form)是触发器触发下一个表单的形式,因此
是整个项目的父或者其他东西(我被告知通过<用关闭命令关闭这个表格它将关闭所有的子表格。
// Kian
Kian,
如何控制启动过程的Sub Main
Public Sub Main()
Dim f As New SpashForm
f.Show
''在这里加载项目资源
f.Dispose( )
f =没什么
Dim fm as New MyMainForm
fm.ShowDialog()
fm.Dispose()
fm = Nothing
End Sub
" peter hansen" < WO ** @ tell.you>在消息中写道
news:en ************** @ TK2MSFTNGP11.phx.gbl ...我尝试了几个几个星期前,我会再试一次:D
我老了VB6天,可以使用Unload(Form)
命令卸载表格。
我有尝试了关闭功能,但它会卸载整个项目。
我问的原因是我正在创建一个程序,我需要一个启动画面(就像出现的小屏幕一样)当像Word开始这样的程序时,当Splash-screen加载了几美元b $ b秒时,它应该被卸载(它不再用于任何用途)...我该怎么卸载<只是这个表格,而不是整个项目。请记住,这个表单(
Splash-form)是触发器触发下一个表单的形式,因此
是整个项目的父或者其他东西(我被告知通过<用关闭命令关闭这个表格它将关闭所有的子表格。
// Kian
I tried a couple of weeks ago but I''ll try again :D
I old VB6-days it was possible to unload a form bu using the Unload(Form)
command.
I have tried the Close-function but it''ll unload the entire projekt.
The reason why I am asking is that I am creating a program and I need a
Splash-screen (like the tiny screen that appears when programs like Word
starts), and when the Splash-screen has been loaded for a couple of seconds
it should be unloaded (it is not for any use anymore)... how do I unload
just this form and not the entire project. Remember that this form (the
Splash-form) is the form that trigger triggers the next form and therefor is
the ''parent'' to the entire project or something (I have been told that by
closing this form with the Close-command it''ll close all the Child-forms)
// Kian
* "peter hansen" <wo**@tell.you> scripsit:I tried a couple of weeks ago but I''ll try again :D
I old VB6-days it was possible to unload a form bu using the Unload(Form)
command.
I have tried the Close-function but it''ll unload the entire projekt.
<http://www.google.com/groups?selm=u%23xQOutWDHA.2100%40TK2MSFTNGP11.phx. gbl>
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Hi Peter,
If you use another approach maybe the answer is easier
Create a kind of main form
Create your splash form
In the load event of your main form you say
\\\
dim frm as new splashform
me.hide
frm.showdialog
me.show
frm.dispose
///
And that is all,
Cor
I old VB6-days it was possible to unload a form bu using the Unload(Form)
command.
I have tried the Close-function but it''ll unload the entire projekt.
The reason why I am asking is that I am creating a program and I need a
Splash-screen (like the tiny screen that appears when programs like Word
starts), and when the Splash-screen has been loaded for a couple of seconds it should be unloaded (it is not for any use anymore)... how do I unload
just this form and not the entire project. Remember that this form (the
Splash-form) is the form that trigger triggers the next form and therefor is the ''parent'' to the entire project or something (I have been told that by
closing this form with the Close-command it''ll close all the Child-forms)
// Kian
Kian,
How a Sub Main that controls the startup process
Public Sub Main()
Dim f As New SpashForm
f.Show
'' loading project resources here
f.Dispose()
f = Nothing
Dim fm as New MyMainForm
fm.ShowDialog()
fm.Dispose()
fm = Nothing
End Sub
"peter hansen" <wo**@tell.you> wrote in message
news:en**************@TK2MSFTNGP11.phx.gbl...I tried a couple of weeks ago but I''ll try again :D
I old VB6-days it was possible to unload a form bu using the Unload(Form)
command.
I have tried the Close-function but it''ll unload the entire projekt.
The reason why I am asking is that I am creating a program and I need a
Splash-screen (like the tiny screen that appears when programs like Word
starts), and when the Splash-screen has been loaded for a couple of seconds it should be unloaded (it is not for any use anymore)... how do I unload
just this form and not the entire project. Remember that this form (the
Splash-form) is the form that trigger triggers the next form and therefor is the ''parent'' to the entire project or something (I have been told that by
closing this form with the Close-command it''ll close all the Child-forms)
// Kian
这篇关于卸载af表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!