Issues with PerformLayout method

Hello,

I was having problems with the PerformLayout method when i init my screen.
the problem is that somehow the PerformLayout raises the CreateControl event before it's even finishes the mechanism (add the controls to the screen) which causes error due to the fact that in the OnCreateControl method I need the controls to be in the screen already.

Notice that I was using Ver. 4 something and everything was working just fine (performlayout didn't raisen the event), but now I have the newest ver. 5.1.1.0 .

P.S
I don't know why but when I am not adding Microsoft controls to the screen but only Syncfusion the performlayout working just fine.
And another thing - I think that maybe somehow the fact that my screen contains a DetailsCtrl (TabControlAdv) has to do with the problems that I have.

Thank You,
Danny

1 Reply

BP Bhuvaneswari P Syncfusion Team January 2, 2008 07:27 AM UTC

Hi Danny,

Sorry for the delay in Response.

Thanks you for your interest in Syncfusion products.

The PerformLayout raises the CreateControl event

I am afraid that I was not able to reproduce the issue, when we call the PerfomLayout method, it doesn't raise the CreateControlEvent.

Here is the sample that I have used to tested this issue.
http://websamples.syncfusion.com/samples/Tools.Windows/F67817/main.htm

Please take a look into the sample and could you please modify the sample with reproduce steps to reproduce the issue. So that we would be able to reproduce the issue in our side and investigate further on this issue.

Please let me know if you have any questions.

Best Regards,
Bhuvana






Loader.
Up arrow icon