Hi,
I am creating three differen appearances which are assigned dynamically to the TabControl.Tabs[x] using
this.TabControl.Tabs[x].Appearance = myAppearance1;
This code is executed the first time in Form.OnLoad procedure.
This works so far. The assigned images, fonts etc. where displayed in the tabheader. But the Text is not displayed as you can see in the attached image. Except the text of the first tab which is not assigned an appearance. After having changed something on a tab there is some calculation and after that, the tab apperances are reassigned (maybe some prerequisites have changed). Then the text in the tabheader is displayed correctly.
Why not during the first time?
The following properties are set:
Any ideas?
Thanks a lot
Patrick
Hi Boris,
it's a long time that I wrote this forum entry. I just checked out and it works now. Don't remember if this is by change of mine or a hotfix:-).
Thanks for your information.
Hello Patrick,
I tried this and it seems to work fine for me. You could try setting the trimming of the text to none and see how it behaves. I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.