编程论坛
注册
登录
编程论坛
→
ASP.NET技术论坛
windows 窗体中让整个form窗体刷新怎么写?
恋雪怜冰
发布于 2010-10-11 14:53, 1260 次点击
现在有一个窗体如下:
只有本站会员才能查看附件,请
登录
现在想刷新这个窗体,请问刷新窗体的属性是哪个?
5 回复
#2
bygg
2010-10-11 17:30
程序代码:
delegate
void
SafeRefreshCallback();
private
void
SafeRefresh()
{
if
(
this
.InvokeRequired)
{
SafeRefreshCallback d =
new
SafeRefreshCallback(SafeRefresh);
if
(!
this
.Disposing)
{
try
{
this
.Invoke(d);
}
catch
{ };
}
}
else
{
this
.Refresh();
}
}
需要的地方,调用SafeRefresh()就行.
#3
恋雪怜冰
2010-10-13 14:16
我是要窗体刷新不是跳转。
#4
yukai621
2010-10-14 08:50
..
#5
金海1108
2010-10-20 10:22
恩
1