0
OpenFileDialogeを使ってPictureBoxで画像を開くvb.netアプリケーションを設計しました。
私のマシンはWindows 7の32ビットであり、これは私のコードです:空のOpenFileDialoge開いた画像
Dim directoryName As String = Path.GetDirectoryName(Application.ExecutablePath)
Try
Dim dialog As New OpenFileDialog
directoryName = ""
dialog.InitialDirectory = directoryName
dialog.Filter = "Pictures|*.jpg|All files (*.*)|*.*"
dialog.FilterIndex = 1
dialog.RestoreDirectory = True
If dialog.ShowDialog = DialogResult.OK Then
TextBox8.Text = dialog.FileName
PictureBox1.Image = Image.FromFile(TextBox8.Text)
End If
Catch ex As Exception
MessageBox.Show(ex.Message.ToString)
End Try
すべては私のマシン上で良いですが、彼は画像を開こうとするとWindows 7の64ビット版を、持っているクライアントマシン上で、彼は次のようになりましたこの画像:誰もがアイデアを持ってください、
はまた、私は別のバージョンでの.Net framworkを変更しようとしましたが、何も起こりませんでしたか?