how to get button click in child effecting a parrent
-
hi, if i press a delete button in parrent form form3 (how is in fact also a child of another form) i want to get a " are you sure? yer or no " screen so i made this in another form, form5. if i press no i just close form 5 but if i press yes something in the parent from has to happen. how do i do this? how do i make a sort of variable that works for both the forms? anybody any ideas links are also helpful :) thx
-
hi, if i press a delete button in parrent form form3 (how is in fact also a child of another form) i want to get a " are you sure? yer or no " screen so i made this in another form, form5. if i press no i just close form 5 but if i press yes something in the parent from has to happen. how do i do this? how do i make a sort of variable that works for both the forms? anybody any ideas links are also helpful :) thx
Create a public boolean property in a message dialog form, say YesClicked. On click of yes button set this property to true... This way you can get value from the dialog form.
M Aamir Maniar aamirOnline.com
-
Create a public boolean property in a message dialog form, say YesClicked. On click of yes button set this property to true... This way you can get value from the dialog form.
M Aamir Maniar aamirOnline.com
thx i forgot to delete delform.MdiParent = this.MdiParent; at fist :) its working fine now, but ... if the delete form comes up its not a child of something. is there a way to still use showdialog an get only one form opening (like the childs do in a parent)? thx anyway you've been a great help :D bye