【发布时间】:2013-12-08 17:44:46
【问题描述】:
我正在努力在 Visual Studio 2012/13 中创建类似于“Pokedex”的东西(目前它基本上是一个 Pokedex)。它是一个 WinForm 程序,到目前为止,我有一个数据网格,列出了“口袋妖怪”列表编号、名称和类型。我接下来要做的是让一个pictureBox元素在选择特定的dataGrid列表项时显示口袋妖怪的图像(从图像链接列表中提取)(所以如果在dataGrid中选择#4,Charmander,那么我希望它在图片框中显示一张 Charmander 的图片)。
这是迄今为止项目的视觉设计示例:
richTextBox下面的空白处就是pictureBox所在的地方。 Later on the Pokemon's description will also be included in that box when the list item is chosen, but I believe that will be easy to implement once I understand how to call the image at selection.
感谢所有帮助!我现在不包括该项目的代码,因为我不知道什么是有用的。请让我知道需要什么才能更好地理解该项目。
【问题讨论】:
标签: c# winforms visual-studio-2012 datagrid picturebox