By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,213 Members | 1,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,213 IT Pros & Developers. It's quick & easy.

closing previous form

P: n/a
ss
Hi
I am opening a new form by:
ChooseLeve chl = new ChooseLevel();
chl.owner = this;
chl.close;

i want that when the user clicks on button1 in chl (ChooseLevel), the
preiouse form will be closed,
how do i do it?

Mar 5 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ss,
I am opening a new form by:
ChooseLeve chl = new ChooseLevel();
chl.owner = this;
chl.close;

i want that when the user clicks on button1 in chl (ChooseLevel), the
preiouse form will be closed,
how do i do it?


Depending on what you really want to do, the simplest way may be to pass a
reference to the form that should be closed in the ChooseLevel constructor
and close it in the Closing() event handler of chl. There are other ways
that may be more convenient depending on your exact requirements.

Regards,

Randy
Mar 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.