Creating a custom BindingNavigator which include a BindingSource
-
Hello, I created a custom BindingNavigator Toolstrip with Buttons - Save, MoveFirst, MovePrevious, MoveNext, MoveLast, Edit mode, Add new, Delete and Cancel. To avoid copying all events to each new Form I like to assemble the toolstrip including the buttons and events into a usercontrol. I want to embed a BindingSource into this UserControl. QUESTION: What is the best practise to house a BindingSource into a UserControl? The end objective is just to drag and drop the usercontrol onto the form and it's just a matter of linking the input controls (textboxes, comboboxes) to this new BindingNavigator control. Regards Arjen
-
Hello, I created a custom BindingNavigator Toolstrip with Buttons - Save, MoveFirst, MovePrevious, MoveNext, MoveLast, Edit mode, Add new, Delete and Cancel. To avoid copying all events to each new Form I like to assemble the toolstrip including the buttons and events into a usercontrol. I want to embed a BindingSource into this UserControl. QUESTION: What is the best practise to house a BindingSource into a UserControl? The end objective is just to drag and drop the usercontrol onto the form and it's just a matter of linking the input controls (textboxes, comboboxes) to this new BindingNavigator control. Regards Arjen
How can I make the BindingSource which is inside the UserControl, visible to other controls on the Form? How do I make the Bindingsource.Datasource property public so it is visible in the Miscellaneous property section of the UserControl? Regards Arjen