2017-02-09 10 views
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ビット版を、持っているクライアントマシン上で、彼は次のようになりましたこの画像:誰もがアイデアを持ってください、

enter image description here

はまた、私は別のバージョンでの.Net framworkを変更しようとしましたが、何も起こりませんでしたか?

答えて

0

私はちょうど検索と時間と時間をもう一度試して5日後に私の問題を解決しました。
私のプログラムでバックエンドとしてMS Acess 2010データベースを使用していましたが、その解決策はMS Acess 2003に変換することでした。
私はそれの何が関係しているのか分かりませんが、解決しました。

関連する問題