Hello,
i created two forms and Form1 and Form2
from From1 i created object for Form2 and
from From2 i created object for Form1
In Form1
Public void OpenForm2()
{
Form2 f2 = new Form2();
f2.ShowDialog() ;
this.visible = false;
}
i have done some modifications in Form2 and now i close Form2 now i need to
show Form1 again so..
In Form2
{
Form1 f1 = new Form1();
f1.visible = true;
}
it is ok but after closing the Form1 means complere project then still the
appliction is running .the resources are not released..
i am not using any closing opration .just clicking 'X' in the window
corner..beside minimize,maximi ze button..
can u clarify this how to reallocte the resources when we create one class
object in another class...
if it continuous for 10 class to invoke each other need to close resources
or it will automatically done..
thank u
i created two forms and Form1 and Form2
from From1 i created object for Form2 and
from From2 i created object for Form1
In Form1
Public void OpenForm2()
{
Form2 f2 = new Form2();
f2.ShowDialog() ;
this.visible = false;
}
i have done some modifications in Form2 and now i close Form2 now i need to
show Form1 again so..
In Form2
{
Form1 f1 = new Form1();
f1.visible = true;
}
it is ok but after closing the Form1 means complere project then still the
appliction is running .the resources are not released..
i am not using any closing opration .just clicking 'X' in the window
corner..beside minimize,maximi ze button..
can u clarify this how to reallocte the resources when we create one class
object in another class...
if it continuous for 10 class to invoke each other need to close resources
or it will automatically done..
thank u