如何通过单击C#Windows应用程序中的下一步按钮一个一个地查看图像 [英] how to view images one by one by clicking next button in c# windows application

查看:67
本文介绍了如何通过单击C#Windows应用程序中的下一步按钮一个一个地查看图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过单击c#Windows应用程序中的下一步"按钮逐个查看图像

how to view images one by one by clicking next button in c# windows application

推荐答案

代码.

需要更多细节吗?好吧

在表单中保留图像的列表或数组(最好是列表),或图像的路径.
有一个PictureBox,并将其Image属性设置为其中一张图像.
有一个按钮,并处理click事件.将PictureBox Image属性更改为列表中的下一个图像.
Code.

A little more detail, you want? Ok.

Keep a list or array (preferably a list) of images, or paths to images within your form.
Have a PictureBox, and set it''s Image property to one of the images.
Have a button, and handle the click event. Change the PictureBox Image property to the next image in the list.


看起来就像您在寻找SlideShow或Album Viewer之类的功能.看看这个:
C#相册查看器 [
Looks like you are looking for a SlideShow or an Album Viewer kind of feature. Have a look at this:
C# Photo Album Viewer[^]


这篇关于如何通过单击C#Windows应用程序中的下一步按钮一个一个地查看图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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