惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V2EX - 技术
V2EX - 技术
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Latest news
Latest news
T
The Exploit Database - CXSecurity.com
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
L
Lohrmann on Cybersecurity
aimingoo的专栏
aimingoo的专栏
B
Blog
T
Threat Research - Cisco Blogs
罗磊的独立博客
Application and Cybersecurity Blog
Application and Cybersecurity Blog
P
Proofpoint News Feed
P
Palo Alto Networks Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
博客园 - 司徒正美
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
T
Tor Project blog
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
Recorded Future
Recorded Future
D
DataBreaches.Net
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
B
Blog RSS Feed
Scott Helme
Scott Helme
P
Proofpoint News Feed
V
Vulnerabilities – Threatpost
A
Arctic Wolf
Help Net Security
Help Net Security
L
LINUX DO - 最新话题
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Vercel News
Vercel News
AWS News Blog
AWS News Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Schneier on Security
Hacker News: Ask HN
Hacker News: Ask HN
N
Netflix TechBlog - Medium
L
LangChain Blog
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
M
MIT News - Artificial intelligence
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
W
WeLiveSecurity

博客园 - zqonline

vs2015 添加行件 关于 OpenSmtp 邮件标题过长后出现乱码问题的解决 获取 httponly 的 cookie 大文本编辑程序 混合模式程序集是针对“v2.0.50727”版的运行时生成的,在没有配置其他信息的情况下,无法在 4.0 运行时中加载该程序集。 加速度传感器与车祸报警解决方案 sqlserver2008里创建系统管理员 iis+php 运行wordpress所遇到的问题 Winforms下使用TableLayoutPanel进行布局,并解决闪烁及平均列宽与平均行高问题 wince文件同步代码[转] 使用edtftpnet上传文件到Serv-U出现乱码的问题,并且不能创建中文文件名或文件夹。 升级程序到.net 4.0 发现log4net不工作与log4net conversionPattern 说明 uc密码产生方式。 SQLite数据库参数化编程时,采用命名参数的方式 System.Data.SQLite 不能在.net 4.0 里引用的解决方法 初次使用json数据格式,发生的常识性错误。 我电脑上的mssql2000居然,被黑了,在还原数据时提示:无法装载DLL Microsoft提示请误随意操作SQL数据库,以免对数据库造成不必要的麻烦或DLL所引用的某一DLL。原因:126(找不到指定模块) 解决SQL2000出现"无法执行查询,因为文件缺少或未注册。再次运行安装程序确保要求的文件已注册。"的方法 wordpress ImetaWeblog
运行时出现 “child”不是此父级的子控件。
zqonline · 2011-04-07 · via 博客园 - zqonline

最近,把一个旧的项目代码,升级到2010,在运行时,出现这个错误。“child”不是此父级的子控件。并且不能打开窗体进行设计。在网上找到一段,修改后,能解决问题。

最近在开发的过程中,我在baseForm窗体上加了一个控件,此BaseForm窗体在加控件前,已经应用于其他的Form上.

在运行过程中发生“child”不是此父级的子控件错误.

检查后发现,可能是因BaseForm已经应用到Form上,在这些Form上已经配置了相关的控件信息.而我在BaseForm上又对这些控件进行了调整,如移动到另一个容器内.

所以发生在Form上原来的控件已经不在原容器上的问题,就会发生“child”不是此父级的子控件.

解决方法:

去这些Form上调整在BaseForm中调整过的控件,在InitializeComponent内将相关的代码删除

如我的

this.groupPanelBase1.Controls.SetChildIndex(this.cBoxList, 0);
this.groupPanelBase1.Controls.SetChildIndex(this.labelX5, 0);

这二控件在BaseForm上调整到了另一容器,而在已经应用了的Form内没有调整,把此二行代码删除或注释掉便可.