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

Cancel closing

3 Answers 46 Views
Dock
This is a migrated thread and some comments may be shown as answers.
stealthsid
Top achievements
Rank 1
stealthsid asked on 27 Jun 2008, 01:20 PM
I saw the recent post on how to hide the closing button. I need something different. I basically want to do this:

void dockPanel3_Closing(object sender, System.ComponentModel.CancelEventArgs e)

{

        dockPanel3.Visible =

false;

        e.Cancel =

true;

}

Instead of closing the dockPanel, I just want to hide it so that I can reconstitute it later without losing its contents.

Currently, the "Closing" event is never called, even when I close the whole application.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 30 Jun 2008, 07:49 AM
Hi Sidney,

To hide DockPanel call Hide() method of DockPanel object instance.

 dockPanel3.Hide(); 

And vice versa; in order to show DockPanel you can use Show() method

 dockPanel3.Show(); 

This operation only Shows/Hides the DockPanel instance, and does not make changes to its content.

If you have additional questions, please contact us.


Sincerely yours,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center

0
stealthsid
Top achievements
Rank 1
answered on 30 Jun 2008, 12:32 PM
Thank you for the reply, however the problem that I have is that the "Closing" method is never fired, so I can't intercept the closing event to cause it to do something other than close.

How do I intercept, and cancel, the closing event?

Sid
0
Julian Benkov
Telerik team
answered on 01 Jul 2008, 02:36 PM
Hi Sidney,

We have found a problem related to Close/Closing event for IDockable windows. The fix will be available for Q2 release
planned for the second half of this month.

Sorry for the inconvenience caused and thank you for the feedback.
Your Telerik points have been updated.

Best wishes,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
stealthsid
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
stealthsid
Top achievements
Rank 1
Share this question
or