BlenardAliu
BlenardAliu

Reputation: 41

C# Visual Studio Microsoft 2022 BindingNavigator not showing

I am trying a project Database Connection from Guru99 tutorial for C#. I have to put a BindingNavigator in Windows Forms App but I don't have that in my ToolBox.

Upvotes: 2

Views: 1854

Answers (1)

Karen Payne
Karen Payne

Reputation: 5117

I can't speak for Visual Studio 2022 but Visual Studio 2019 does not have a BindingSource available in the toolbox for one reason or another so with that see if the following provides a BindingNavigator in your toolbox.

If this is the case, try adding the following class to your project.

public class CoreBindingNavigator : BindingNavigator
{
    public CoreBindingNavigator()
    {
        AddStandardItems();
    }
}

Build the project and you should see the CoreBindingNavigator in your toolbox.

Upvotes: 6

Related Questions