winforms - My C# form closes and returns the control to the previous form. -
i working on desktop application in c#. in code, if have load new from. have used [dot]showdialog() function object of form want load. while new form loads , works fine, after completion of function call (button press), control returns parent form automatically should have stayed on child form. can 1 please suggest doing wrong?
i make wild guess, behavior typical when button pressed has property dialogresult
set different none
.
usually happens when have made copy/paste of button prexistent button ok or cancel have property dialogresult set.
Comments
Post a Comment