绑定数据库中的数据 [英] bind data from database
本文介绍了绑定数据库中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试从数据库绑定图片框:
i have try bind picture box from database :
pictureBox1.DataBindings.Add("Image", DataSet, "stdPhoto")
但没有结果
请帮助
在此先感谢
but no result
please help
thanks in advance
推荐答案
看看下面的2条支持文章,正是您想要的内容:
如何:使用Visual C#将图片直接从数据库复制到PictureBox控件 [如何通过使用Visual Basic .NET在Windows Forms PictureBox中显示数据库中的图像 [
Take a look at the following 2 support article, does exactly what you are looking for:
HOW TO: Copy a Picture from a Database Directly to a PictureBox Control with Visual C#[^]
How To Display an Image from a Database in a Windows Forms PictureBox by Using Visual Basic .NET[^]
这篇关于绑定数据库中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文