As I hide or leave visible dictionary by code

Stimulsoft Reports.NET discussion
Post Reply
pca
Posts: 14
Joined: Fri Nov 30, 2007 1:44 pm

As I hide or leave visible dictionary by code

Post by pca »

1 .- As I hide or leave visible dictionary by code
2 .- Do not allow hide the dictionary

Thanks
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

As I hide or leave visible dictionary by code

Post by Brendan »

Is it that you wish to stop user from closing the Dictionary Panel when they click on the X ?
pca
Posts: 14
Joined: Fri Nov 30, 2007 1:44 pm

As I hide or leave visible dictionary by code

Post by pca »

yes

Thanks you
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

As I hide or leave visible dictionary by code

Post by Brendan »

stiDesignerControl1 is my Designer control on a form. You can replace this with your own Designer class instance.

Code: Select all

Stimulsoft.Report.Design.Panels.StiDictionaryPanelService dict = Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService(stiDesignerControl1);

//Load Dictionary Panel if it was Closed
dict.Init(stiDesignerControl1);

//Listen for Closing Event
dict.DockingControl.Closing += new CancelEventHandler(DockingControl_Closing);

Code: Select all

void DockingControl_Closing(object sender, CancelEventArgs e)
{
    //Cancel Dictionary Panel from Closing
    e.Cancel = true;
}
Post Reply