IAFYM 0 Newbie Poster

Hi,

I'm writing my own DLLs in vb.net. I'm making a DLL which contains layouts for printed forms - so these layouts could be updated easily.

I'm using a DLL, because well... I dont know how else to do it really. But I want values from a form to be used in the DLL to produce the print preview.

I've got

imports frmProject
...
dim frm as frmProject.frmMain
dim brush as new solidbrush(color.black)

e.graphics.drawstring(frm.lblNumber.text, new font("arial", 30), brush, 260, 40)

thats not working if I try:

dim frm as new frmProject.frmMain

it loads a new instance of the program into the memory and loads the text thats on the labels on load.

Any help would be great