VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
calling another projects form from a current project Posted by kdmoon on 12 May 2006 at 7:10 AM
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?
Report
Re: calling another projects form from a current project Posted by DrMarten on 12 May 2006 at 11:23 AM
: 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>>


 myOtherProjectsName.Form1.Show()



instead of the usual Me.Form1.Show()

Obviously change myOtherProjectsName to match your other project name.

Could be worth a try....?

Dr M.

Report
Re: calling another projects form from a current project Posted by kdmoon on 12 May 2006 at 2:57 PM
: : 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>>
:
:
: 
:  myOtherProjectsName.Form1.Show()
: 
: 

:
: instead of the usual Me.Form1.Show()
:
: Obviously change myOtherProjectsName to match your other project name.
:
: Could be worth a try....?
:
: Dr M.
:
:

Report
Re: calling another projects form from a current project Posted by kdmoon on 12 May 2006 at 2:58 PM
: : : 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>>
: :
: :
: : 
: :  myOtherProjectsName.Form1.Show()
: : 
: : 

: :
: : instead of the usual Me.Form1.Show()
: :
: : Obviously change myOtherProjectsName to match your other project name.
: :
: : Could be worth a try....?
: :
: : Dr M.
: :
: :
:
:
Ok i have tried that but no luck.
Report
Re: calling another projects form from a current project Posted by dokken2 on 15 May 2006 at 5:39 AM
This message was edited by dokken2 at 2006-5-15 5:40:25

: 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.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.