Dim myFile As Byte() = myFiles.Item(ListBox1.Items(ListBox1.SelectedIndex))
هذا في حال أن الملف سيتم تسجيله في الـMemory أما إذا كنت لا تود تسجيله في الـMemory فيمكنك عند الإضافة، إضافة مسار الملف للـListBox و عند القراءة تستخدم
PHP كود :
Dim myFile As Byte() = IO.File.ReadAllBytes(ListBox1.Items(ListBox1.SelectedIndex))
Dim myFile As Byte() = myFiles.Item(ListBox1.Items(ListBox1.SelectedIndex))
هذا في حال أن الملف سيتم تسجيله في الـMemory أما إذا كنت لا تود تسجيله في الـMemory فيمكنك عند الإضافة، إضافة مسار الملف للـListBox و عند القراءة تستخدم
PHP كود :
Dim myFile As Byte() = IO.File.ReadAllBytes(ListBox1.Items(ListBox1.SelectedIndex))