Results 1 to 3 of 3

Thread: [RESOLVED] Quick question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2009
    Posts
    230

    Resolved [RESOLVED] Quick question

    I'm trying to access the datagridview on a form who's object I've passed to a class but the class doesn't recognise the type datagridview.

    Is there a particular namespace I need to declare on the class header before the a class instance can access it?

    Thanks.

  2. #2
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Quick question

    Quote Originally Posted by garry79 View Post
    I'm trying to access the datagridview on a form who's object I've passed to a class but the class doesn't recognise the type datagridview.

    Is there a particular namespace I need to declare on the class header before the a class instance can access it?

    Thanks.
    at the top of the code page:
    vb Code:
    1. Imports System.Windows.Forms
    make sure you add a reference to the System.Windows.Forms.dll too

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2009
    Posts
    230

    Re: Quick question

    Quote Originally Posted by BrailleSchool View Post
    at the top of the code page:
    vb Code:
    1. Imports System.Windows.Forms
    make sure you add a reference to the System.Windows.Forms.dll too
    This works for DataGridViews of type Form but what if I want to add a Form of a type form from another Project, which I'm now trying to do?

    VB appears to only let you create only one reference from one project to another with no circular referencing which means that I can only reference one project to the other and not the other way around.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width