m.bibjan
جمعه 20 دی 1392, 00:06 صبح
من واسه این کار از کد زیر استفاده کردم ولی مشکل داره
احساس میکنم کد واسه #C هستش و باید معادلش رو توی WPF بنویسم
ولی نمیدونم چی هستش
کسی بلده؟
خط اخری بهم گیر داده
ممنون
Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
dlg.FileName = "Your Picture"; // Default file name
//dlg.DefaultExt = ".txt"; // Default file extension
dlg.Filter = "Images (*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|" +
"All files (*.*)|*.*"; // Filter files by extension
// Show open file dialog box
Nullable<bool> result = dlg.ShowDialog();
// Process open file dialog box results
if (result == true)
{
// Open document
// string filename = dlg.FileName;
txtimage.Text = dlg.FileName;
images.AsyncCallback(dlg.FileName);
احساس میکنم کد واسه #C هستش و باید معادلش رو توی WPF بنویسم
ولی نمیدونم چی هستش
کسی بلده؟
خط اخری بهم گیر داده
ممنون
Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
dlg.FileName = "Your Picture"; // Default file name
//dlg.DefaultExt = ".txt"; // Default file extension
dlg.Filter = "Images (*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|" +
"All files (*.*)|*.*"; // Filter files by extension
// Show open file dialog box
Nullable<bool> result = dlg.ShowDialog();
// Process open file dialog box results
if (result == true)
{
// Open document
// string filename = dlg.FileName;
txtimage.Text = dlg.FileName;
images.AsyncCallback(dlg.FileName);