Windows窗体未显示任何放置的控件 [英] Windows forms not showing any of the placed controls

查看:80
本文介绍了Windows窗体未显示任何放置的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发Windows窗体,并放置了所有代码并进行了处理.但是突然我的新表格显示为空.它没有显示我保留在表单上的任何控件.任何人都知道我为什么要面对这个问题.

但是当我进入属性窗口时,所有控件都在那里.但在设计模式或运行模式下,它不会显示任何控件.

我突然收到这个问题.请帮帮我.

在此先感谢.

mohan

Hi All,

I''m developing a windows form and i placed all of my code and worked on it. but suddenly my new form is showing empty. it doesn''t show any of the controls which i kept on the form. any body has idea about why i''m facing this issue.

But when i went to properties window all the control''s are there. but in design mode or run mode it is not showing any of the controls.

i got this issue suddenly. please help me out.

thanks in advance.

mohan

推荐答案

听起来像帮助台那样的风险-您是否重新启动了计算机?
Atr the risk of sounding like a help desk - have you rebooted your machine?


不知道如果这是相关的,但是...

当在窗体或窗体的子控件中使用资源中的图像,然后在不首先将相关控件的属性设置为的情况下从资源中删除图像时,就发生了这种情况首先还有其他事情.

我发现的唯一解决方案是完全删除有问题的resx文件,创建一个新文件,然后再次手动添加图像,以在需要时配置控件属性. PITA正常运行.
Don''t know if this is relevant but...

I''ve had this happen when using image(s)s from Resources in a form or a control that is a child of a form and then removed the image(s) from Resources without first setting the related control''s property to something else first.

The only solutuion I found was to remove the offending resx file completely, create a new one and manually add the images again configuring the control properties where needed. PITA but worked.


是的,我几次重启了机器.可能是我在考虑创建一个新文件并重新设计它.我怀疑的另一件事是我直接在myfile.designer.cs文件中更改了一些值,这可能会引起问题.让我创建一个新的,并做我以前做过的相同的事情,然后尝试重现错误.

mohan
Yes I rebooted my machine couple of times. may be i''m thinking to create a new file and design it again. one more thing i''m doubting is i changed some values directly in myfile.designer.cs file, which may be causing problem. let me create a new one and do the same things what i had done before and try to reproduce error.

mohan


这篇关于Windows窗体未显示任何放置的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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