Hey I'm new to programming and to the forum. I am creating a simple inventory system that uses both modal and non-modal forms. My challenge is I created a change password form (modal) and it has a 'change password' button as well as a 'cancel' button. When i click cancel, it closes everything. I dont want that I only want the change password form to close leaving the parent form in view. I have search high and low but the help that I got (this.close, dispose) does not work. I even changed the dialogResult property to cancel but that didnt work either. How do I accomplish this?
Jump to Post
Depends on how you've coded the logic of the form. this.Hide() should do what you want.
All 8 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.