Passing Parameter from one child form to another's public method

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Here is the code in the calling form:

Form frmDetails = new employeeDir.details ();
frmDetails.MdiParent = this.MdiParent;
frmDetails.DisplayForm(1);

Here is the code in detail form:

public void DisplayShow(int EmployeeID)
{
this.label1.Text = EmployeeID.ToString();
}

Somehow the DisplayShow method does not appear in intellisense, what am I
missing?
 
Hi
from the snippet that you show , it seem that there is nothing missing ,
try to rebuild your code to make sure that there is no syntax error
somewhere else that block intellisense
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top