Hi Mano,
I know that the code works if the method is called directly or indirectly using a delegate, but my project requires me to make the call asyncronously and as you must have noticed the code never makes it beyond this line in my sample code.
this.tabControlAdv1.Controls.Add( newTab );
I would like to know why does it not work with asyncronous calls.
Thanks.
>Hi Jim,
>
>Please modify the code in the button click event as follows,
>
>private void button1_Click(object sender, System.EventArgs e)
>{
> if( this.createNewTabEvent != null )
> {
> // this.createNewTabEvent.BeginInvoke(null,null);
> this.createNewTabEvent();
> }
>}
>
>Please refer to the modified sample and let me know if this works for you.
>
>Thanks for using Syncfusion products.
>
>Regards,
>Mano
>Syncfusion, Inc.
>
>
>
>
>
SyncTabEx_9975.zip
>
>