Multiple events invoked in TabControl |
Post Reply |
Author | |
Toma
Newbie Joined: 08 May 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
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 ? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |