🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.csharpbuilder.winforms.general
3 messages
3 total messages Started by gara Mon, 02 Aug 2004 12:46
reading value from form
#36
Author: gara
Date: Mon, 02 Aug 2004 12:46
9 lines
1027 bytes
Hi ! could you help me 
I would like to read connection string from OracleConnection component which stays in mainForm from seceond from2

ex :

string strConn = MainForm.oraConn.connectionstring;

how can i do it ?
Re: reading value from form
#33
Author: Rob Windsor
Date: Mon, 02 Aug 2004 23:33
26 lines
1412 bytes
Add a property to MainForm.

public string ConnectString
{
    get {return oraConn.ConnectionString;}
}


-- 
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada


"gara" <mgarayev@gapinsaat.com> wrote in message
news:410e3788$1@newsgroups.borland.com...
>
> Hi ! could you help me
> I would like to read connection string from OracleConnection component
which stays in mainForm from seceond from2
>
> ex :
>
> string strConn = MainForm.oraConn.connectionstring;
>
> how can i do it ?
Re: reading value from form
#34
Author: gara
Date: Tue, 03 Aug 2004 04:35
20 lines
1582 bytes
thanks ,

I added property but i still can not access from second Form2 to property in mainForm

ex : Application is running and i am clicking button login then 
login Form(form2) appears. Now i need read connection string from oraConn which stays in FormMain. to be more exact i need to read components properties or values from MainForm when the 
active form is Form2.

thanks for your answers

"Rob Windsor" <rwindsor@NO.MORE.SPAM.bigfoot.com> wrote:
>Add a property to MainForm.
>
>public string ConnectString
>{
>    get {return oraConn.ConnectionString;}
>}
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads