Adding data from form to form
I have 2 forms form1 and form2, when I'm on form2 and I'm trying to get a count of all records in a datagridview on form1, I get nothing.
This is what I'm doing.
dim frm as New Form1
dim intCnt as integer = frm.datagrid.rows.count
This is at least 1 record in the datagridview, but this code returns nothing. Any ideas?
I figured it out. I shared the control in the main form and was able to access in the 2nd form.
By joejdx in forum VB Classic
Last Post: 03-10-2006, 12:02 PM
By software_develo in forum .NET
Last Post: 11-21-2005, 03:12 PM
Last Post: 02-01-2001, 04:02 AM
By Dan in forum VB Classic
Last Post: 03-17-2000, 05:14 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center