Windows 7的Windows 7 32/64位问题-它在其中显示了有限的高度控件 [英] Windows 7 32/64 bit issue for Windows form-Its showing limited height controls in it

查看:54
本文介绍了Windows 7的Windows 7 32/64位问题-它在其中显示了有限的高度控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道这个问题吗?

说明:

我正在将图片框运行时添加到Windows窗体并将图像加载到其中.
Windows窗体将所有图片框ctrl添加到窗体.但是在显示窗体时其显示窗体的高度为32718.我的每个图像高度为680.添加ctrl后我的窗体的实际高度为37198.

这个问题只在win 7上有效吗?

有人知道吗?


在此先感谢..

Any body knows about this issue?

Description:

I am adding picture box runtime to windows form and loading image to it.
Windows form adding all picture box ctrls to form.But while displaying form its showing form with 32718 height.My each image height is 680.My actual height of form after adding ctrls is 37198.

This issue is only with win 7?

Does anybody knows about this?


Thanks in Advance..

推荐答案

您可以在C#中使用以下代码来解决此问题:

pictureBox1.Image =图片;
pictureBox1.Height = image.Height;
pictureBox1.Width = image.Width;

或者,您可以根据需要设置图片框的自定义高度.

谢谢与问候
Yogesh
You can use following code in C# to fix the issue:

pictureBox1.Image = image;
pictureBox1.Height = image.Height;
pictureBox1.Width = image.Width;

Or u can set custom height to picture box as u want.

Thanks & Regards
Yogesh


这篇关于Windows 7的Windows 7 32/64位问题-它在其中显示了有限的高度控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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