when i use this code:
Try
Dim f As TagLib.File = TagLib.File.Create(FolderBrowser.FileName, GETtypename(FolderBrowser.FileName), TagLib.ReadStyle.None)
Dim pic As TagLib.IPicture = f.Tag.Pictures(0)
Dim ms As MemoryStream = New IO.MemoryStream(pic.Data.Data)
ms.Seek(0, SeekOrigin.Begin)
Dim bitmap As BitmapImage = New BitmapImage
bitmap.BeginInit()
bitmap.StreamSource = ms
bitmap.EndInit()
IMAGEsongs.BackgroundImage = Image.FromStream(bitmap.StreamSource)
IMAGEsongs.Visible = True
Catch ex As Exception
IMAGEsongs.Visible = False
End Try
Form size is reduced by 50% and all lines or texts return to their normal type I tried to use this to return the form size to what it was in form load:
Me.Size = New Size(xxx, xxx)
But it didn't work, how do i fix this problem?