Error1 The name 'MyPictures' does not exist in the current context
But in the OpenFileDialog InitialDirectory for the Properties box "MyPictures" is in their....
VB Code:
private void pComboBox(object sender, System.EventArgs e) { using (openFileDialog1) dlg.Filter = "MyPictures(*.jpg)" + "|*.png|All Files (*.*)|*.*"; dlg.InitialDirectory = MyPictures; try { if (dlg.ShowDialog() == DialogResult.OK) { _MyPictures.Open(dlg.FileName); } } catch (Exception) { MessageBox.Show("Unable to open " + "album\n" + dlg.FileName, "Open Album Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }





Reply With Quote