表格完全装载和绘制? [英] Form Completely loaded and drawn?
本文介绍了表格完全装载和绘制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在完全加载和绘制后运行一些东西,但是
在表单加载结束时运行并不是我猜的原因很大
数据集填充并且表单未完全加载。我在哪里可以粘贴一些代码
以便我可以在完全绘制和加载表单后运行它?我被告知
没有真正的方法可以知道什么时候完全已加载?
I want to run something once my form in completely loaded and drawn but
running at the end of form load doesn''t do I guess cause of the large
dataset fill and the form isn''t fully loaded. Where can I stick some code
so that I can run it after the form in fully drawn and loaded? I was told
there is no real way to know when it is "completely" loaded?
推荐答案
您可以将其置于激活事件中。
'' - 使用这只有你想只运行一次
Dim run_once As Boolean
Private Sub Form1_Activated(ByVal sender As Object,ByVal e As
System.EventArgs)处理MyBase.Activated
如果不是run_once然后
''---做你想做的事
run_once = True
结束如果
结束子
" B-Dog" < BD *** @ hotmail.com>在留言中写道
新闻:%2 *************** @ TK2MSFTNGP10.phx.gbl ...
You could put it in tne form Activated Event.
''-- Use this only if you want to run it only one time
Dim run_once As Boolean
Private Sub Form1_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
If Not run_once Then
''--- Do whatever you want
run_once = True
End If
End Sub
"B-Dog" <bd***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
我想要一旦我的表单在完全加载和绘制时运行一些东西但是在表单加载结束时运行并不是因为我猜测大数据集填充的原因并且表单没有完全加载。我在哪里可以粘贴一些代码
以便我可以在完全绘制和加载表单后运行它?我被告知
没有真正的方法可以知道它何时是完全的。加载了吗?
I want to run something once my form in completely loaded and drawn but
running at the end of form load doesn''t do I guess cause of the large
dataset fill and the form isn''t fully loaded. Where can I stick some code
so that I can run it after the form in fully drawn and loaded? I was told
there is no real way to know when it is "completely" loaded?
我试过了,在我的项目中,on激活在我的表单之前触发了
load is完成。我可能做错了什么。谢谢
Think_Fast < NOSPAM @哈哈>在消息中写道
新闻:10 ************* @ corp.supernews.com ...
I tried that and in my project the on activated was firing before my form
load was complete. I may be doing something wrong. Thanks
"Think_Fast" <nospam@haha> wrote in message
news:10*************@corp.supernews.com...
你可以把它放进去表单激活事件。
'' - 仅当你想运行它一次时才使用它
Dim run_once As Boolean
Private Sub Form1_Activated(ByVal sender As Object,ByVal e As
System.EventArgs)处理MyBase.Activated
如果不是run_once然后
''---做你想做的事
run_once = True
结束如果
B-Dog < BD *** @ hotmail.com>在消息中写道
新闻:%2 *************** @ TK2MSFTNGP10.phx.gbl ...
You could put it in tne form Activated Event.
''-- Use this only if you want to run it only one time
Dim run_once As Boolean
Private Sub Form1_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
If Not run_once Then
''--- Do whatever you want
run_once = True
End If
End Sub
"B-Dog" <bd***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
我想在我的完全加载和绘制的窗体但是在窗体加载结束时运行并不是因为我认为填充大数据集的原因并且表单没有完全加载。我在哪里可以粘贴一些
代码,以便我可以在完全绘制和加载表单后运行它?我是
告诉他们没有真正的方法知道什么时候它是完全的已加载?
I want to run something once my form in completely loaded and drawn but
running at the end of form load doesn''t do I guess cause of the large
dataset fill and the form isn''t fully loaded. Where can I stick some code so that I can run it after the form in fully drawn and loaded? I was told there is no real way to know when it is "completely" loaded?
是的,只是再次尝试并在我的加载结束时进行调试一个调试
激活后激活被调试然后加载?
Think_Fast < NOSPAM @哈哈>在消息中写道
新闻:10 ************* @ corp.supernews.com ...
Yes, just tried it again and put a debug at the end of my load and a debug
on activated with activated being debugged first then load?
"Think_Fast" <nospam@haha> wrote in message
news:10*************@corp.supernews.com...
你可以把它放进去表单激活事件。
'' - 仅当你想运行它一次时才使用它
Dim run_once As Boolean
Private Sub Form1_Activated(ByVal sender As Object,ByVal e As
System.EventArgs)处理MyBase.Activated
如果不是run_once然后
''---做你想做的事
run_once = True
结束如果
B-Dog < BD *** @ hotmail.com>在消息中写道
新闻:%2 *************** @ TK2MSFTNGP10.phx.gbl ...
You could put it in tne form Activated Event.
''-- Use this only if you want to run it only one time
Dim run_once As Boolean
Private Sub Form1_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
If Not run_once Then
''--- Do whatever you want
run_once = True
End If
End Sub
"B-Dog" <bd***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
我想在我的完全加载和绘制的窗体但是在窗体加载结束时运行并不是因为我认为填充大数据集的原因并且表单没有完全加载。我在哪里可以粘贴一些
代码,以便我可以在完全绘制和加载表单后运行它?我是
告诉他们没有真正的方法知道什么时候它是完全的加载?
I want to run something once my form in completely loaded and drawn but
running at the end of form load doesn''t do I guess cause of the large
dataset fill and the form isn''t fully loaded. Where can I stick some code so that I can run it after the form in fully drawn and loaded? I was told there is no real way to know when it is "completely" loaded?
这篇关于表格完全装载和绘制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文