如何使用箭头键滚动浏览带图片框的文件夹中的图像?
我正在创建一个非常简单的图像查看器。
我有一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看KeyPress Event,您可以在其KeyPressEventArgs中获取有关按下的按键的信息。
Have a look at the KeyPress Event, you can get the information about the pressed key in its KeyPressEventArgs.