![]() |
how to change font of items |
Post Reply ![]() |
Author | |
tobi ![]() Senior Member ![]() ![]() Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
![]() ![]() ![]() ![]() ![]() Posted: 13 August 2006 at 1:06pm |
How is it possible in vb6 to change the font name and size of taskpanel items ? Trying it through design time proprties results in an error and I donīt know how to do it with code ...
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
It is possible using TaskPanel.ItemsFont. For example:
Dim x As New StdFont x.Size = 16 x.Name = "Arial" Set wndTaskPanel.ItemsFont = x |
|
![]() |
|
tobi ![]() Senior Member ![]() ![]() Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
![]() ![]() ![]() ![]() ![]() |
Iīve put that code in my Form_Load event but the font and size doesnīt change !? |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Maybe you change the theme afterwards?
In our taskpanel sample I just put that code at the end of form load and it works. |
|
![]() |
|
tobi ![]() Senior Member ![]() ![]() Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
![]() ![]() ![]() ![]() ![]() |
Yep, I changed theme ! Putting code after the theme change works !!!
Thanks a lot
![]() |
|
![]() |
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 |