在c#.netcf中添加控件的问题 [英] problem with Adding controls in c# .netcf

查看:41
本文介绍了在c#.netcf中添加控件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用c#.netcf开发应用程序.

Iam developing a application in c# .netcf.

当Iam使用Controls.add将控件添加到选项卡或表单中时.控件吸引了一个人再见,而不是一次画画.

when Iam adding controls to tabpage or form using Controls.add . Controls are drawing one  bye one instead of drawing at a time.

如何避免呢?

是Controls.add的问题吗?如果是这样,则它们是.netcf中的替代方法.

Is this problem w.r.t Controls.add. If it so is their alternative in .netcf.

推荐答案

.Add()窗体构造函数中的控件,而不是响应运行时的事件.如果您不希望它们立即可见,请输入nameOfControl.Visible = false;.添加控件后,在您的构造器中.您可以简单地将 控件根据需要可见.
.Add() the controls in a form's constructor rather than in response to an event at runtime. If you don't want them to be immediately visible, put nameOfControl.Visible = false; in your contructor after you have added the control. You can simply make the controls visible as required.


这篇关于在c#.netcf中添加控件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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