Raise an event when my tab - lost focus

Topics: CAB & Smart Client Software Factory
Sep 26, 2006 at 6:29 AM
originally posted by: Vicky1

I am using the cab technology and Infragistics tab control. I need to raise an event when my tab - lost focus (I want to show a message - would you like to save it or not).
So when I do that - it opens my next view before it raises the event. How can I raise the even before opening a new view. I tried it using workitem and workspace and not able to get it.

//This is one thing I tried - using workitem.

this.Deactivating += new System.ComponentModel.CancelEventHandler(ShModuleWorkItem_Deactivating);

//This is another - using workspace.

mwsMDITabWorkspace.TabSelecting += new Infragistics.Win.UltraWinTabbedMdi.CancelableMdiTabEventHandler(tabNotesSelectedTabChanged);

Any ideas - welcome.

Sep 28, 2006 at 10:12 AM
originally posted by: DLorenz

Are you using a a TabWorkspace or are you just using a normal Infragistics tab control? If you are using a normal one, you should probaby create a custom Tab class that you can override the OnLosingFocus method, allowing you to show the message.