
Originally Posted by
Smartacus
You actually did more than just solve this problem. You gave a clear example of how I can streamline my code by using "Sender" for better OO coding!
In regards to sender within the contexts of the module DataGridViewExtensions when I declare sender as shown below
Code:
Public Sub InvokeBanding(ByVal sender As Windows.Forms.DataGridView)
I prepend DataGridView with the namespace it comes from because this module was extracted from a DLL I created which by default does not have a reference to System.Windows.Forms.
So if you are always going to work with code such as in DataGridViewExtensions in a Windows Forms project you can remove the namespace i.e.
Code:
Public Sub InvokeBanding(ByVal sender As DataGridView)
While if the module might end up in a DLL keep the namespace as is now.