Solved

working with 2 project in 1 solution

Posted on 2009-03-31
1
134 Views
Last Modified: 2012-05-06
Solution  WindowsApplication1
    --Project1
           clsA.vb
           clsB.vb
            Form1B.vb
    --Project2
           clsC.vb
           Form1B.vb
Public Class clsA
  Public x As Integer
End Class

Public Class Form1
    Private Sub anySub()
       Dim y As New Integer
       'i m trying to set clsA.x = y
    End Sub
End Class      
0
Comment
Question by:sayeth
1 Comment
 
LVL 6

Accepted Solution

by:
RPCIT earned 500 total points
ID: 24034682
Not sure what your looking for, but when using multiple projects, you need to add references between them.  Usually from your "host" project, you would add a reference to the "client" project, but you may need to reference both to each other.  Do this by right clicking on the project in solution explorer and click Add Reference.  Then choose the project from the Projects tab.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA saving file message display 5 65
Visual Basic Excel Formatting error 4 106
String manipulation in Visual Basic 7 62
Sending a email via excel using vba 6 82
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question