.net Varbinary(max)图像Visual Studio 2008
我需要从员工数据库中读取记录并显示所选项目(不在Gridview中)——这很好,但存储在varbinary(max)中的图像除外。我需要一步一步地浏览记录——向前和向后。有些记录没有映像。 我在理解为每条记录使用该数据集的转换方法时遇到问题 我正在使用VisualStudio2008和thryng在windows窗体应用程序中显示记录 非常感谢您的帮助 下面是我的一些代码:.net Varbinary(max)图像Visual Studio 2008,.net,sql-server,visual-studio,varbinary,.net,Sql Server,Visual Studio,Varbinary,我需要从员工数据库中读取记录并显示所选项目(不在Gridview中)——这很好,但存储在varbinary(max)中的图像除外。我需要一步一步地浏览记录——向前和向后。有些记录没有映像。 我在理解为每条记录使用该数据集的转换方法时遇到问题 我正在使用VisualStudio2008和thryng在windows窗体应用程序中显示记录 非常感谢您的帮助 下面是我的一些代码: Public Class Form1 Private Sub GraduatesBindingNavigator
Public Class Form1
Private Sub GraduatesBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GraduatesBindingNavigatorSaveItem.Click
Me.Validate()
Me.GraduatesBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.Graduates_DatabaseDataSet)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Graduates_DatabaseDataSet.Graduates' table. You can move, or remove it, as needed.
Me.GraduatesTableAdapter.Fill(Me.Graduates_DatabaseDataSet.Graduates)
End Sub
Private Sub GraduatesBindingNavigator_RefreshItems(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GraduatesBindingNavigator.RefreshItems
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub PhotographLabel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub SurnameTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SurnameTextBox.TextChanged
End Sub
Private Sub FillBysurnameToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Try
Me.GraduatesTableAdapter.FillBysurname(Me.Graduates_DatabaseDataSet.Graduates, SsnameToolStripTextBox.Text)
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub
End Class
使用并为其属性指定一个图像对象,该对象是从表中的varbinary(max)字段创建的,使用生成
不幸的是,您无法使用简单的设计器时间绑定,您必须将事件挂接到数据绑定货币管理器事件