This is a migrated thread and some comments may be shown as answers.

How capture the DialogResult property..?

1 Answer 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
Romell
Top achievements
Rank 1
Romell asked on 06 Aug 2012, 08:36 PM
Hi,

I have the following code:

    dim objectControl as new myCustomControl  'This control have two buttons "OK" and "CANCEL"

            With radObjectWindow
                
                .Header = "Some text...."
                .WindowStartupLocation = WindowStartupLocation.CenterScreen
                .ResizeMode = ResizeMode.NoResize
                
                .Owner = Owner '(Window.GetWindow(me))
                .Content = objectControl

                .ShowDialog()

            End With

This code works fine, the modal window have a behavior expected, but how capture the "OK" or "CANCEL" click action....from buttons into a RadWindow....into a CustomControl.....

In fact, I have understood that the radwindow is asynchronous, then how to make action buttons in the custom control affect the program flow of this modal window .....

Thanks....

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Top achievements
Rank 1
answered on 20 Aug 2012, 09:02 PM
You need to handle the Closed() event and do whatever you need in that.
Tags
Window
Asked by
Romell
Top achievements
Rank 1
Answers by
Stefan
Top achievements
Rank 1
Share this question
or