We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TabControlAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

75573 Jul 30,2008 08:31 PM UTC Aug 5,2008 08:56 AM UTC WinForms 1
loading
Tags: Tools
Robert Bateman
Asked On July 30, 2008 08:31 PM UTC

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...

Any ideas?


Administrator [Syncfusion]
Replied On 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


Please let me know if any concern.

Regards,
Hema


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;