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.
5,185 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 118K 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.