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

RibbonBar Close Button

1 Answer 124 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
jatchison
Top achievements
Rank 1
jatchison asked on 29 Jan 2007, 03:26 AM
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
LoginForm.Close()
End Sub

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 29 Jan 2007, 10:21 AM
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
    LoginForm.Close()
End Sub
    
 
Kind regards,
Tsvetan Raikov
the telerik team
Tags
RibbonBar
Asked by
jatchison
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or