开发者

C# TabPage.Controls.Add too long

开发者 https://www.devze.com 2022-12-26 07:36 出处:网络
At run time, I add on开发者_运维百科e control to a tabpage and I notice that it takes 0.5 sec to do it. It\'s rather long and I would like to reduce this time. I tried Suspend/ResumeLayout but for onl

At run time, I add on开发者_运维百科e control to a tabpage and I notice that it takes 0.5 sec to do it. It's rather long and I would like to reduce this time. I tried Suspend/ResumeLayout but for only one action it's no relevant and do not improved anythng. Any ideas?


Information provided is not sufficent.

I think either your system(computer) is of low configuration or you are adding a control like datagrid, listview with lots of data in it. you can test perfomence by adding some simple controls like listbox, textbox and compare. are you adding control in pageload or using thread.

0

精彩评论

暂无评论...
验证码 换一张
取 消