Custom Control with openfiledialog,filter & embbeded resource

Hello!

I would like made a custom control where i can select a
wav file.

In my attribute file i have add this:
<Editor>
<Type>System.Windows.Forms.Design.FileNameEditor,
System.Design,Version=2.0.0.0,
Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a</Type>
<BaseType>System.Drawing.Design.UITypeEditor,System.Drawing,
Version=2.0.0.0,
Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a</BaseType>
</Editor>

It work well, but i would like in my openfiledialog create a file filter
wav. I have not found to create it.

After i would like insert my file in the
embedded resource.How can i do
it resourcewriter doesn't existe in cf.

Thank you for your help,

Best regards,

Wavemill


Answer this question

Custom Control with openfiledialog,filter & embbeded resource

  • Kannan Pothi

    The OpenFileDialog class has a Filter property that allows a developer to specify the filter. For an embedded resource, the .NET Compact Framework does not support creating or editing managed assemblies at runtime on devices.

    David Wrighton

    .NET Compact Framework


  • Custom Control with openfiledialog,filter & embbeded resource