how to pass values from one page to dll

Posted by Amritha444 under C# on 3/10/2012 | Points: 10 | Views : 1286 | Status : [Member] | Replies : 1
Hi all

Im working in .net windows based application.
Iam creating dll for each pages.but in those page i want to pass a value from frmmenuscreen to to those individual screens.How to pass values to dll.i cannot use like <pre> frmmater obj_co=new frmmaster; obj_co.obj = this;</pre> error coming wile adding second line mainly this to dothis

Thanks in advance


Posted by: Naraayanan on: 3/12/2012 [Member] Starter | Points: 25

Is it windows Application? If yes means,
try this,
Declare Namespace
using System.Runtime.InteropServices;

Declare a dll file in the Screen
 [DllImport("dll file Name.dll")]

// call your function with Parameter

and you in your Application.

Lakshmi Naraayanan.S

Amritha444, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response