我怎样才能使图像尺寸上的按钮变小? [英] How can I make the image size smaller on a button?

查看:161
本文介绍了我怎样才能使图像尺寸上的按钮变小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个按钮,我想图像(.ico文件)和文字上存在。我的问题是,我想按钮的高度要小,但我不能设法缩水的形象,就像我想。其结果是对按钮,而不是孔的图像可见一张图像。在图像属性中的图像尺寸是固定的(48×48)和选项是灰色的,所以我不能改变它。我怎样才能让此图片为16x16

I have a button and I want image (.ico file) and text to exist on it. My problem is that I want button's height to be small, but I can't manage to "shrink" the image as much as I want to. The result is to have a piece of image visible on the button and not the hole image. At the image property the image size is fixed (48x48) and the option is grey so I can't change it. How can I make this image to be 16x16?

推荐答案

尝试buttonname.BackgroundImageLayout = ImageLayout.Stretch?;或更改设计这个属性。

Try buttonname.BackgroundImageLayout = ImageLayout.Stretch; or change this property in designer.

这篇关于我怎样才能使图像尺寸上的按钮变小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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