M
mp
hello all, just starting to try to learn c#, sorry for the dumb question
using c# express on winxp pro
started a new project wpf type
added a button to call openfiledialog
i get type or namespace name not found are you missing... error
i get this on openfiledialog, so went to help to find it's heirarchy and it
says it in PresentationFramework.Windows soemthing(found it in help last
night, now i can't find it again to get the exact name)
but even PresentationFramework gives the same error
there is mention of an openfiledialog component but that seems to be in
windows.forms which appears to be a different world than wpf as that control
isn't found in the toolbox
System..::.Object
System..::.MarshalByRefObject
System.ComponentModel..::.Component
System.Windows.Forms..::.CommonDialog
System.Windows.Forms..::.FileDialog
System.Windows.Forms..::.OpenFileDialog
heres' my snippet that has the compile errors
namespace WpfApplication1
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
Stream myStream = null;
//OpenFileDialog not found error:
OpenFileDialog openFileDialog1 = new OpenFileDialog();
//PresentationFramework name not found
PresentationFramework.Win(something).OpenFileDialog openFileDialog1 = new
OpenFileDialog();
how do i get access to the open and save dialogs in c# wpf?
Thanks
mark
using c# express on winxp pro
started a new project wpf type
added a button to call openfiledialog
i get type or namespace name not found are you missing... error
i get this on openfiledialog, so went to help to find it's heirarchy and it
says it in PresentationFramework.Windows soemthing(found it in help last
night, now i can't find it again to get the exact name)
but even PresentationFramework gives the same error
there is mention of an openfiledialog component but that seems to be in
windows.forms which appears to be a different world than wpf as that control
isn't found in the toolbox
System..::.Object
System..::.MarshalByRefObject
System.ComponentModel..::.Component
System.Windows.Forms..::.CommonDialog
System.Windows.Forms..::.FileDialog
System.Windows.Forms..::.OpenFileDialog
heres' my snippet that has the compile errors
namespace WpfApplication1
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
Stream myStream = null;
//OpenFileDialog not found error:
OpenFileDialog openFileDialog1 = new OpenFileDialog();
//PresentationFramework name not found
PresentationFramework.Win(something).OpenFileDialog openFileDialog1 = new
OpenFileDialog();
how do i get access to the open and save dialogs in c# wpf?
Thanks
mark