تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] مشكلة فى كود عرض الصورة
#14
هذا التعديل، اعتذر عن التاخير
PHP كود :
Private Sub ListView1_ItemSelectionChanged(sender As ObjectAs System.Windows.Forms.ListViewItemSelectionChangedEventArgsHandles ListView1.ItemSelectionChanged
        TextBox1
.Text e.Item.Tag
        Using ad 
As New OleDbDataAdapter("select * from Tab2 where id=@id"con)
            
ad.SelectCommand.Parameters.AddWithValue("@id"e.Item.Tag)
            
Dim t As New DataTable
            ad
.Fill(t)
            If 
t.Rows.Count 0 Then

                Dim bytes
() As Byte CType(t.Rows(0)("Picture"), Byte())
                
Dim memStream As MemoryStream = New MemoryStream(bytes)
                
PictureBox1.Image Image.FromStream(memStream)

            
End If
        
End Using
    End Sub 
الرد }}}
تم الشكر بواسطة: sendbad100


الردود في هذا الموضوع
RE: مشكلة فى كود عرض الصورة - بواسطة abdualla - 04-04-17, 01:22 AM
RE: مشكلة فى كود عرض الصورة - بواسطة abdualla - 04-04-17, 01:45 AM
RE: مشكلة فى كود عرض الصورة - بواسطة abdualla - 04-04-17, 02:04 AM
RE: مشكلة فى كود عرض الصورة - بواسطة abdualla - 04-04-17, 02:16 AM
RE: مشكلة فى كود عرض الصورة - بواسطة abdualla - 04-04-17, 02:22 AM
RE: مشكلة فى كود عرض الصورة - بواسطة abdualla - 04-04-17, 03:04 AM
RE: مشكلة فى كود عرض الصورة - بواسطة abdualla - 04-04-17, 05:37 PM


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم