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, 01:02 PM
By software_develo in forum .NET
Last Post: 11-21-2005, 04:12 PM
Last Post: 02-01-2001, 05:02 AM
By Dan in forum VB Classic
Last Post: 03-17-2000, 06:14 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL