I am trying to run a subroutine from another subroutine. I have BindNavigatorPostionItem routine that I want to update when I press a button on a winform in my application.
The general Idea is to make this work so I can do this with a combobox later on.
So right now the button will change the BindNavigatorPostionItem.Text form 1 to 20 and once this change takes place I want to active the BindNavigatorPostionItem from the button so that BindNavigatorPostionItem will do the actual change of position.
Later
Stormen

Try to run a subroutine from an other subroutine
Sorin Solescu
Hi Stormen,
There is a property on the BindingSource object which will do all of this for you. The BindingSource object which gets added in the tray when you drag and drop from the DataSources window manages all of the binding goo for you. The BindingNavigator is simply UI that sits on top of the BindingSource which knows how to manipulate it.
To jump to the 20th record in your resultset you can use the position property on the BindingSource which would look something like this:
CustomersBindingSource.Position=19
This property is 0 based so Position=0 is actually the first item so if you want item 20 you'll need to set the Position to be 19.
Some other handy methods on the BindingSource to navigate through your results are: MoveFirst, MoveLast, MoveNext, MovePrevious.
Hope this helps,
Eric Gruber
Visual Basic Team