使用工具箱对象显示图片 [英] Using toolbox object to display picture

查看:90
本文介绍了使用工具箱对象显示图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以从工具箱中使用可以显示图片的对象.我正在创建一个有单选按钮的程序,如果用户选择了某个单选按钮,则将显示特定图片.我找到了图片框,但是它不起作用!

I was wondering if there was an object you can use from the toolbox that can display pictures. I am creating a program where there are radiobuttons and if the user selects a certain radiobutton then a certain picture is displayed. I''ve found the picturebox, but it doesn''t work!

推荐答案

您可以在PictureBox控件中显示图片.这里给出了一个详细的例子

http://www.functionx.com/vcsharp/controls/picturebox.htm [ ^ ]
You can display pictures in PictureBox control. A detailed example is given here

http://www.functionx.com/vcsharp/controls/picturebox.htm[^]


嗯,您还没有真的在工具箱中看过,对吗?尝试在所有Windows窗体"或通用控件"选项卡下查找.
Uhhh, you haven''t really looked in the ToolBox, have you? Try looking under the "All Windows Forms" or "Common Controls" tabs. It''s pretty obvious.


这是一个简单的问题,如果您使用的是Visual Studio,那么在工具箱(左侧)中查找图片框将显示图像.OKK
this is an easy question if you are using visual studio than in Toolbox(left side) look for picture box it will display images.OKK


这篇关于使用工具箱对象显示图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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