2013-05-31 196 views

回答

1

不幸的是,Devexpress不提供文件上传控制( See This),因此您可以在代码中使用本机文件上传器。

一个简单的代码将

// Create OpenFileDialog 
    Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog(); 
    dlg.Filter = "image Files|*.jpg"; 

    Nullable<bool> result = dlg.ShowDialog(); 
    if (result == true) 
    { 
     this.pictureEdit1.Image = Image.FromFile(dlg.FileName) // Not tested this one 
    } 

希望这有助于