Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Multiple events invoked in TabControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiple events invoked in TabControl

 Post Reply Post Reply
Author
Message
Toma View Drop Down
Newbie
Newbie


Joined: 08 May 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Toma Quote  Post ReplyReply Direct Link To This Post Topic: Multiple events invoked in TabControl
    Posted: 08 May 2006 at 12:20pm

Hi !

I have used tabcontrol  of codejock, and I used usercontrol for every tab page of the tab contorl. I saw that when the form with tabcontrol is loaded, the load event of the forms that are used from the tabpages are invoked twice !?!?!

The constructor of the form is executed only one time, but the form_load event is invoked twice...This with vb.net (2005)...

And another thing -  I saw that one event DobuleClick in DataGridView in usercontrol that is used in tabpage is invoked 3 times, when i only one time double clicked on datagridview...

Where is the problem ?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2006 at 10:21am
Hello,
You must first add control to TabControl.Controls collection:

See code:

  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim uc As New UserControl1
    AxTabControl1.Controls.Add(uc)
    AxTabControl1.InsertItem(0, "Item", uc.Handle.ToInt32(), -1)
  End Sub
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.