How capture the DialogResult property..?

2 posts, 1 answers
  1. xavendano
    xavendano avatar
    35 posts
    Member since:
    Feb 2012

    Posted 06 Aug 2012 Link to this post


    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


                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 .....


  2. Answer
    Stefan avatar
    1 posts
    Member since:
    May 2011

    Posted 20 Aug 2012 Link to this post

    You need to handle the Closed() event and do whatever you need in that.
  3. DevCraft banner
Back to Top