Hello,
I have a (hopefully simple) problem.
I have a form, lets call it frmMain, and this has a database connection
object on it (sqlconnection) declared as public. All works well.
One of the operations I want to do will occur on a second form (call it
frmChild).
I can open up this quite happily with
frmChild NewChildForm = new frmChild();
frmChild.showdialog();
but on the child form I want to do a Database operation. frmMain.dbconn
(name of my connection) doesn't work, and from what I have read this is
because I need an object reference to frmMain rather than just frmMain. I
get that, but how do I reference something that already exists rather than
creating a new one?
Hope that makes sense
James.