如何使用箭头键滚动浏览带图片框的文件夹中的图像?

发布于 2024-12-04 18:44:57 字数 179 浏览 4 评论 0原文

我正在创建一个非常简单的图像查看器。

我有一个 Picturebox 控件来显示图像。我希望能够使用箭头键滚动浏览文件夹中的所有图像 - 基本上,就像默认的 Windows 图片查看器那样。目前,我有一个打开文件对话框来选择要显示的图像,但我不知道从这里去哪里。

对于编程来说相当陌生,因此我们将不胜感激。 :)

I'm in the process of creating a pretty simple image viewer.

I've got a Picturebox control to display the image. And I'd like to be able to use the arrow keys to scroll through all of the images in a folder - basically, the way the default Windows picture viewer does. At the moment, I have an Open File Dialog to choose the image to display, but I'm not sure where to go from here.

Pretty new to programming, so any help would be greatly appreciated.
:)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

﹏半生如梦愿梦如真 2024-12-11 18:44:57

查看KeyPress Event,您可以在其KeyPressEventArgs中获取有关按下的按键的信息。

Have a look at the KeyPress Event, you can get the information about the pressed key in its KeyPressEventArgs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文