how to call sub from another sub(Still Same form) in VB.net -


i have piece of code below :

public sub dgvpenjualan_currentcellchanged(byval sender object, byval e system.eventargs) handles dgvpenjualan.currentcellchanged     dim jumlahrow integer = dgvpenjualan.rowcount()     'dim nama string     dim jumlahtotal integer = 0     dim harga, jumlah string     dim total integer     'dim indeks integer , bla bla bla bla bla bla bla 

and dgvpenjualan_currentcellchanged sub sub ? can me ? please

if code inside dgvpenjualan_currentcellchanged not use parameters sender and/or e, can call anywhere in project using:

dgvpenjualan_currentcellchanged(nothing, nothing) 

otherwise, need pass parameters well:

dgvpenjualan_currentcellchanged(dgvpenjualan, new system.eventargs()) 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -