im writing a vb app and having most of my functions a part of different classes.
my question is, if i know every form i send this function will have the same control, why wont it let me compile my code?
for example, heres a fake function
Public Function DoSomething(ByVal count As Integer, ByRef frm As Form, ByRef grid as DataGrid)
'this is the code i want but wont work
if frm.grid.Columns.Recordcount = 10 Then