title: Empty OpenFileDialoge when open image
body: <p>I have designed a vb.net application which uses OpenFileDialoge to open a picture in PictureBox.<br>
  My machine is windows 7 32bit and this is my code:  </p>
  
  <pre><code>    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  
  </code></pre>
  
  <p>everything is good on my machine, but on the client machine who has windows 7 64bit, when he trying to open an image, he got like this Picture: </p>
  
  <p><a href="https://i.stack.imgur.com/76v0R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/76v0R.png" alt="enter image description here"></a></p>
  
  <p>Also, I tried to change the .Net framwork with different versions but nothing happened, anyone have an idea please?</p>