calling another projects form from a current project - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

calling another projects form from a current project

kdmoonkdmoon Posts: 16Member
after importing another vb.net project into a current vb.net project, how would i go about calling a existing form from the project i imported into the current project?

Comments

  • DrMartenDrMarten Posts: 748Member
    : after importing another vb.net project into a current vb.net project, how would i go about calling a existing form from the project i imported into the current project?
    :
    ======================================================================

    Hi,

    I'm guessing at something like>>

    [code]

    myOtherProjectsName.Form1.Show()

    [/code]

    instead of the usual Me.Form1.Show()

    Obviously change [b][blue]myOtherProjectsName[/blue][/b] to match your other project name.

    Could be worth a try....?

    Dr M.

  • kdmoonkdmoon Posts: 16Member
    : : after importing another vb.net project into a current vb.net project, how would i go about calling a existing form from the project i imported into the current project?
    : :
    : ======================================================================
    :
    : Hi,
    :
    : I'm guessing at something like>>
    :
    : [code]
    :
    : myOtherProjectsName.Form1.Show()
    :
    : [/code]
    :
    : instead of the usual Me.Form1.Show()
    :
    : Obviously change [b][blue]myOtherProjectsName[/blue][/b] to match your other project name.
    :
    : Could be worth a try....?
    :
    : Dr M.
    :
    :

  • kdmoonkdmoon Posts: 16Member
    : : : after importing another vb.net project into a current vb.net project, how would i go about calling a existing form from the project i imported into the current project?
    : : :
    : : ======================================================================
    : :
    : : Hi,
    : :
    : : I'm guessing at something like>>
    : :
    : : [code]
    : :
    : : myOtherProjectsName.Form1.Show()
    : :
    : : [/code]
    : :
    : : instead of the usual Me.Form1.Show()
    : :
    : : Obviously change [b][blue]myOtherProjectsName[/blue][/b] to match your other project name.
    : :
    : : Could be worth a try....?
    : :
    : : Dr M.
    : :
    : :
    :
    :
    Ok i have tried that but no luck.
  • dokken2dokken2 Posts: 532Member
    [b][red]This message was edited by dokken2 at 2006-5-15 5:40:25[/red][/b][hr]
    : Ok i have tried that but no luck.
    :

    remember scope and that by just adding Proj2 to Proj1, neither project can 'see' the other [even when declaring a module in Proj2 as Public or Friend]. need to add a Reference to one of the projects- Add Reference, Project tab, Select the project. however, like with VB6 it seems that the add-in project must be a DLL, in my test VB.Net indicated an error with a simple form project.


Sign In or Register to comment.