Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - (SOLVED) How to set different font to item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

(SOLVED) How to set different font to item

 Post Reply Post Reply
Author
Message
darahem View Drop Down
Groupie
Groupie


Joined: 22 July 2008
Location: Egypt
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote darahem Quote  Post ReplyReply Direct Link To This Post Topic: (SOLVED) How to set different font to item
    Posted: 18 October 2009 at 8:38am


Thanks In advance

Product: Xtreme SuitePro (ActiveX) version 12.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2009 at 2:48pm
Hi,
 
You can set all items with same font:
 
      Set wndPropertyGrid.Font = Me.Font (or any other font object)           
 
or a single item:
 
      Set wndPropertyGrid.FindItem(ID_PROPGRIDITEM).ValueMetrics.Font = Me.Font (or any other font object)
            wndPropertyGrid.FindItem(ID_PROPGRIDITEM).ValueMetrics.Font.Bold = True (if you want it to be BOLD)
 
 
 
Note: If you set HighLightChangedItems = True the changed items will be BOLD anyway
 
 
 
 
 
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
darahem View Drop Down
Groupie
Groupie


Joined: 22 July 2008
Location: Egypt
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote darahem Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2009 at 5:16am
Thanks, Thanks, Thanks

It works.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.