如何刷新或刷新C#Windows窗体? [英] How to Refresh or Flush the C# Windows Form?

查看:554
本文介绍了如何刷新或刷新C#Windows窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我进入我的申请表格。

在点击OK按钮,将进入下一个表格进一步  processing.My第二种形式是

While Clicking the OK button, It will go to next form for further processing.My Second form is

在第二种形式,我必须选择,任何一个选项按钮,然后preSS确定button.After pressing OK按钮,我只是调用一些功能,然后将返回到Form1.But Form1中有没有得到其控制的一些seconds.It看起来越来越倒塌,需要refreshed.but我不知道如何刷新的一种形式?请指引我走出这个问题...

In the second Form, I have to choose,any one option button and then press ok button.After pressing ok button,i just calling some function and then it will return to Form1.But Form1 has not getting its control for some seconds.It looks like getting collapsed and needs to be refreshed.but i don't know how to refresh a form? Please Guide me to get out of this issue...

看起来,

推荐答案

在窗体上调用this.Invalidate()或this.Refresh()来更新它。

call this.Invalidate() or this.Refresh() on the form to update it.

这篇关于如何刷新或刷新C#Windows窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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