RibbonBar Close Button

2 posts, 0 answers
  1. jatchison
    jatchison avatar
    3 posts
    Member since:
    Jul 2006

    Posted 28 Jan 2007 Link to this post

    I have a form with a Ribbon Bar on it, what I want to do is once the close button on the ribbon are is click for it to close the parent form. (VB.net)

    So if it was a normal button instead of Ribbon Bar it would be.

    Private Sub CloseBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseBtn.Click
    End Sub

  2. Jack
    Jack avatar
    2333 posts

    Posted 29 Jan 2007 Link to this post

    Hello John,

    In our current version it is not possible to attach an event to the RibbonBar close button click. Still, the close button click raises a close event of its parent form. You can attach your event to the form's FormClosing or FormClosed events:

    Private Sub Form1_FormClosed(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase.FormClosed
    End Sub
    Kind regards,
    Tsvetan Raikov
    the telerik team
Back to Top