Adding data from form to form


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Adding data from form to form

  1. #1
    Join Date
    Jul 2004
    Posts
    366

    Question Adding data from form to form

    Ok,

    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?

    Thanks all.

    jb

  2. #2
    Join Date
    Jul 2004
    Posts
    366
    I figured it out. I shared the control in the main form and was able to access in the 2nd form.

Similar Threads

  1. Clearing the form data
    By joejdx in forum VB Classic
    Replies: 8
    Last Post: 03-10-2006, 01:02 PM
  2. Adding rows to the data grid
    By software_develo in forum .NET
    Replies: 1
    Last Post: 11-21-2005, 04:12 PM
  3. Replies: 0
    Last Post: 02-01-2001, 05:02 AM
  4. I am helpless - Edit Info form
    By Dan in forum VB Classic
    Replies: 0
    Last Post: 03-17-2000, 06:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center