OpenFileDialog not found in Visual Studio 2019 toolbox

dsddrre24 1 Reputation point
2021-03-03T16:05:42.337+00:00

Hello, I created a wpf project in Visual Studio with IronPython. For some reason, I don't a OpenFileDialog in my toolbox, I even go to "Choose ToolBox Item" to see if I have it. Turns out I do have it but it still not appear in my toolbox after I put a check mark on it. Any suggestions will be appreciated.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,628 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 112.5K Reputation points
    2021-03-03T16:18:22.96+00:00

    This feature is probably available in case of other kinds of projects (Windows Forms, for example). In WPF you can use the dialog programmatically. (Short example in C# and VB: https://learn.microsoft.com/en-us/dotnet/desktop/wpf/app-development/dialog-boxes-overview). You can find some samples for IronPython too, but use Microsoft.Win32.OpenFileDialog instead of System.Windows.Forms.OpenFileDialog.

    2 people found this answer helpful.
    0 comments No comments