如何在c#windows中重新加载表单 [英] how to reload the form in c# windows
问题描述
我正在使用form.reload下注它工作得很慢请给我更好的答案...........
嗨Rohit,
欢迎您访问MSDN论坛。
嗯,这是一个不同的问题。 要重新初始化表单,您需要添加对例程的调用,该例程在启动时初始化所有值。 您可以(或应该)在您的代码中使用以下内容:
公共课SomeForm:Form {public SomeForm(){InitializeComponent(); //初始化textboxes / comboboxes / etc InitializeFormState(); }
只需调用方法InitializeFormState();
很多时候在MSDN论坛中讨论的相同场景,请检查以下链接
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/0f854aa4-288c-4282-b367-5496a80f29b9
< a href ="http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/5f81aeda-b642-4801-ad97-b6d06d68b9c4"> http://social.msdn.microsoft.com/Forums / en-US / csharpgeneral / thread / 5f81aeda-b642-4801-ad97-b6d06d68b9c4
I希望它会对你有所帮助。
按
A探路者..
JoSWa
i am using form.reload bet it is working very slow please give better answer to me...........
Hi Rohit,
Welcomes you to MSDN forums.Well, that is a different question. To reinitiallize the form you would need to add a call to the routine that initializes all the values when it was started. You may (or should) have something like this in your code:
public class SomeForm : Form { public SomeForm() { InitializeComponent(); // Do initialization of textboxes/comboboxes/etc InitializeFormState(); } }
Just call the method InitializeFormState();Lot of times the same scenario disscused in MSDN forums, Check the following links
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/0f854aa4-288c-4282-b367-5496a80f29b9
I hope it will helps to you.
By
A Pathfinder..
JoSWa
这篇关于如何在c#windows中重新加载表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!