Reputation: 41
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
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