How to handle a event in Windows Application
-
hi all, i have a MDIform wich contains two subforms, when i click on the a button of a form the other forms pups up, and the first form should disappear, how to do this, do we have any provision to communicate between two forms,--like of Session of webpages, please help me thnx in advance, prashanth,
-
hi all, i have a MDIform wich contains two subforms, when i click on the a button of a form the other forms pups up, and the first form should disappear, how to do this, do we have any provision to communicate between two forms,--like of Session of webpages, please help me thnx in advance, prashanth,
pashitech wrote:
the first form should disappear
Call the
Hide
method of the form.pashitech wrote:
do we have any provision to communicate between two forms
Take a look at this CP article: Passing Values between Forms in .NET 1.x with C# and VB.NET examples[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
hi all, i have a MDIform wich contains two subforms, when i click on the a button of a form the other forms pups up, and the first form should disappear, how to do this, do we have any provision to communicate between two forms,--like of Session of webpages, please help me thnx in advance, prashanth,
If Form1 is your main form and Form2 is your subform, on the button click event write
Form2 f = new Form2(); f.Show(); this.Hide();
Although we should remove memory use for Form1 but I dont know how too :(