Adding user defined buttons to Messagebox
-
Hello ppl, I need a message box with the following buttons. Yes/No/YesToAll/Cancel. MessageBoxButton class doesnot have option for this. Currently i could think of one solution being having a form with its Form border style as FixedDialog and having four buttons in it.. Is there anyother way to do this?Any pointers/suggestions would be helpful. cheers, jagan
-
Hello ppl, I need a message box with the following buttons. Yes/No/YesToAll/Cancel. MessageBoxButton class doesnot have option for this. Currently i could think of one solution being having a form with its Form border style as FixedDialog and having four buttons in it.. Is there anyother way to do this?Any pointers/suggestions would be helpful. cheers, jagan
Defining your own dialog is best way to solve the problem. The alternative is messy, full of P/Invoked functions, managed struct representations, and Windows messaging. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]
-
Hello ppl, I need a message box with the following buttons. Yes/No/YesToAll/Cancel. MessageBoxButton class doesnot have option for this. Currently i could think of one solution being having a form with its Form border style as FixedDialog and having four buttons in it.. Is there anyother way to do this?Any pointers/suggestions would be helpful. cheers, jagan
What you've come up with is the best way to do it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome