The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I suspect I am doing something incorrect with my TabControlAdv based control in VB 2005. (The version number on the SyncFusion DLLs is 6.202.0.40.)
In the code I am working on, we had 1 tab that always displays in our TabControlAdv. Our code would, programatically, add additional tabs as needed to display additional information.
We've received a user requirement to alter the display of our "core" tab (the one that is always active.) The user wants us to "hide" a control that display below the TabControlAdv when we change away from the "core" tab - bringing that control back ONLY when the "core" tab is visible.
To test everything out, I went into our TabControlAdv in design mode and added a second "visible", always there, tab and called it t2. In the vb code that sits behind our window, I've added code that looks like this:
Private Sub t2_GotFocus(...) as t2.GotFocus
What I expected at run-time was, when I select Tab t2, the GotFocus event would fire and my code would go active. Looking thru the execution log, I'm not seeing Tab t2 ever get focus. I say this because the very first item inside of t2_GotFocus() calls our VB Logger writing a logging event - and the log shows nothing.
I "know" other events are getting fired in other places because our code is trapping other events as expected. This one has me baffled...
ADAdministrator Syncfusion Team August 5, 2008 08:56 AM UTC
Hi Rbateman,
Thank you for your interest in Syncfusion Products.
TabcontrolAdv is resemble to standard Tabcontrol. The GotFocus event is not fired in standard control too.
Could you please use the Enter event instead of GotFocus event. Please refer the below code snippet. [C#] Private Sub TabPageAdv2_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPageAdv2.Enter MessageBox.Show("This is TAB 2 in Syncfusion") End Sub
otherwise you can change the handles as Enter in GotFocus event.
Please refer the below code snippet. [C#] Private Sub TabPageAdv2_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabPageAdv2.Enter MessageBox.Show("This is TAB 2 in SF Control") End Sub