My doubt is :
1] I have got many forms and MDI container. There is close button on all the forms.One of the form name is Homepage.
2]Whenever the user clicks on close button,i.e.the cross button with minimize and maximize box, The form will close but at the same time it should redirect to homepage.
3]I know to show new form ,we use Homepage.show().
But,This homepage.show() is written in the code when we got button or other controls.
4]What can be done with this cross close button? How to code for this?
Should the coding to be written in page_load?
Kindly reply Soon.
Thank you :)
Iamateur
0
Junior Poster in Training
Recommended Answers
Jump to Postyou first call for homepage then you close then current form.
If you looking to open your homepage when ALL forms are closed then you need to check if all forms are closed during the closing event of every form.
Jump to PostDo you have an instance of your Homepage form open already? Are you trying to make another Homepage form to open? Please provide a little more detail. Thanks
Jump to PostCheck which is ur startup form....if ur startup form is the same as the one u r closing then it will close the complete application....
dont use the
me.close
orme.dispose
....useMe.Hide
and try....to check ur startup form click on Project -> Projectname properties -> Application tab -> Startup …
Jump to PostMe.Visible = False
try this :)
All 13 Replies
Iamateur
0
Junior Poster in Training
ninjatalon
0
Junior Poster in Training
Iamateur
0
Junior Poster in Training
ninjatalon
0
Junior Poster in Training
Iamateur
0
Junior Poster in Training
poojavb
29
Junior Poster
Iamateur
0
Junior Poster in Training
poojavb
29
Junior Poster
Iamateur
0
Junior Poster in Training
poojavb
29
Junior Poster
Riteman
-4
Light Poster
Iamateur
0
Junior Poster in Training
poojavb
29
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.