John,
As Cor stated you can use a Property, which is consistent with the Framework
(OpenFileDialog for example).
In addition to the property I will also sometimes add an overloaded
constructor to the dialog that accepts the value I want to pass in. However
I normally only use this when I am passing readonly data, such as the
caption of the dialog or a reference to an object that the dialog operates
on. Because the object is a reference the dialog can modify the object
itself.
Hope this helps
Jay
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
Hi
How can I pass a string from a form to a dialog which I am trying to open
from the same form?
Thanks
Regards