[its like a button in form A calls form b ....
form b is called .... n form a is hidden using this.close
now the work in form b in over so i want to call form a again ... ]

this.close used to exit or close the form. for hiding, you can use
this.Hide. this.close will dispose the objects.
How you are calling FormB from FormA? By instance method show or
showDialog? Any how, once the form B execution finished, obviously
execution will come back to the next line of show or show dialog of
FormA button event.Now solution depends on where you are calling the
this.Close to hide the form?

[SqlConnection conn = new SqlConnection("Data Source = @moi-pc;
initial
catalog = @project; user id = @sa; pwd = @madurai;");

like i do when i want to pass variables into my sqlcommand code ]

When means, before opening the connection. Could you explain more?



On Aug 29, 9:04 pm, stanlei <[email protected]> wrote:
> its like a button in form A calls form b ....
> form b is called .... n form a is hidden using this.close
> now the work in form b in over so i want to call form a again ...
>
> How do i do that ...
>
> one more thing ... i want to make my app portable so i decided to
> create a form which gets da local server name and the authentication
> required ... what modification do i have to make to:
>
> SqlConnection conn = new SqlConnection("Data Source = moi-pc; initial
> catalog = project; user id = sa; pwd = madurai;");
>
> i was think in of using variables and came up with something like
>
> SqlConnection conn = new SqlConnection("Data Source = @moi-pc; initial
> catalog = @project; user id = @sa; pwd = @madurai;");
>
> like i do when i want to pass variables into my sqlcommand code ...
>
> can anyone point me in the right direction?

Reply via email to