在面板中无法获得超过10000个控件 [英] Can't get more than 10000 controls in a panel

查看:84
本文介绍了在面板中无法获得超过10000个控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我面临的一个不正常和奇怪的问题....


我正在开发一个票务软件....


在运行时,我尝试在面板布局中添加超过10000个标签...


程序引发Win32未处理的异常...

This is an unsual and weird problem that im facing....

Im developing a ticketing software where ....

At runtime when i try to add more than 10000 labels in the panel for seat layouts...

the program raises a Win32 unhandled exception...

推荐答案

您可能已经超出了硬限制。你甚至可以一次在屏幕上放置10,000个标签吗?
You may have surpased a hard limit. Can you even fit 10,000 labels on the screen at one time?


代码是否可以使用100个标签?


否则将相关代码发布在哪里发生异常
Does the code work with 100 labels?

Otherwise post the relevant code where the exception occures


应用程序是关于座位布局的....

在运行时应用程序接受座位的行和列并绘制...

他们根据.....


当我输入(90行和90列)它在Panel上绘制它们并且面板是可滚动的...


但是当我这样做(100行和100列)时会引发Win32异常,并显示错误消息是创建句柄错误....
the application is about seat layouts where....
at runtime the application accepts for the rows and cols for seats and draws...
them according.....

when i enter (90 rows and 90 cols) it draws them on Panel and the panel is scrollable...

but when i do (100 rows and 100 cols) it raises a Win32 exception and the error message displays is "Error creating Handle"....


这篇关于在面板中无法获得超过10000个控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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