Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6728809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:12:51+00:00 2026-05-26T10:12:51+00:00

I have two project and having trouble on passing value between two project. As

  • 0

I have two project and having trouble on passing value between two project. As usual I have passed the file reference between project.

My project Details Is:

Project1                Project2
All forms and object    Only 1 MDI Forms Containing ManuStrip

I wants to read the data of MDI Forms on showing the project1 forms
The Example is as below:

//This is on Project2 MDI Forms

    private void accountMasterToolStripMenuItem_Click(object sender, EventArgs e)
    {
        INVOICE1.Form24 f24 = new INVOICE1.Form24();
        f24.PFrom.Text = label4.Text;
        f24.PTo.Text = label5.Text;
        f24.Namee.Text = textBox1.Text;
        f24.ID.Text = label6.Text;
        f24.ShowDialog();



    }

I Have Created the Properties for the same on project1 forms

   public Label PFrom
    {
        get { return label14; }
        set { label14 = value; }

    }
    public Label PTo
    {
        get { return label16; }
        set { label16 = value; }

    }
    public Label Namee
    {
        get { return label2; }
        set { label2 = value; }

    }
    public Label ID
    {
        get { return label3; }
        set { label3 = value; }

    }

The value passed from MDI To Project1 is not showing on Form24 of Project1. There are no error. The Form24 Showing without value which are passed from MDI Form.

Why The value not showing on form24 of project1 ?. And What is the Solution?.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:12:52+00:00Added an answer on May 26, 2026 at 10:12 am

    You may have forgotten to add a project reference to Project1 in Project2. In the Solution Explorer, right-click Project2 and select “Add Reference”, then under “Projects” select Project1.

    Also, if the two projects have different namespaces, you’ll need to put

    using Project1;  // replace "Project1" with the namespace of your Project1
    

    At the top of the Project2 source file.


    If there are no compiler errors then the problem is not likely to be with project references. Perhaps you have some code in the Form24 constructor or Load event which is clearing those labels


    As a side note, instead of exposing the Labels as properties, just expose their Text property:

    public string PFrom       
    {           
        get { return label14.Text; }           
        set { label14.Text = value; }          
    }   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some trouble with transactions in Rails 3. Basically I have two models
I'm having trouble recreating the issue in jsbin without giving away project-specific details (I'm
I have been having intermittent trouble with data access so I'm rebuilding my project.
Suppose my solution have two project: myApp: silverlight application project: the default application App
Let's say I have two simple models project t.string :title vote t.references :project t.integer
I have two tables: entitytype and project . Here are the create table statements:
I have two applications in my project 'test' the applications are one.mxml and two.mxml
I have two libraries and a single application assembly project layout and I'm wondering
I have two checkouts of one trunk of a project via SVN. One is
I have two projects, the DLL project which has all my logic and data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.