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
Post a Comment