Tks for reply Eric,
I just declare my connection like below but looks like is not declare in my
child form. Do I need to do something special in my child form?
JFB
Public Shared connectionString As String = "DataSource=SQLServer;Initial
Catalog=DBName;user=sa;password=pass"
"EricJ" <ericRéMo**@ThiSomnipack.be> wrote in message
news:3f***********************@reader0.news.skynet .be...
in addition
if you declare the string in your parent form as public shared you can
access it from the other forms 2
"JFB" <jf*****@directvinternet.com> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl... Tks for reply Armin,
How can I pass the the connectionstring?
Sorry but I'm new....
JFB
"Armin Zingler" <az*******@freenet.de> wrote in message
news:#4**************@TK2MSFTNGP11.phx.gbl... "JFB" <jf*****@directvinternet.com> schrieb
> Hi,
> Can I define just one connection string in the MDI form and use it
in > all the forms?
> Or Do I need to create a connection for each form?
> Tks
> JFB
> Private connectionString As String = "Data
> Source=SQLServer;Initial Catalog=DBName;user=sa;password=pass"
You can pass the connection or only the connectionstring.
--
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html