Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16044

How to create procedure to call DGV and Form in many Forms

$
0
0
because i use this code in many forms with many DGV I tried to create procedure like this but i don't know how to complete
the code : Form1.DataGridView1.CurrentRow.Cells(8).Value
Code:

Public Sub DGV(ByVal x As Integer, ByVal y As Integer)
        Form(x).DataGridView(y).CurrentRow.Cells(8).Value()
    End Sub

and thank you for help

Viewing all articles
Browse latest Browse all 16044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>