Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Problem with CaptionMetrics
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with CaptionMetrics

 Post Reply Post Reply
Author
Message
Miroslaw View Drop Down
Newbie
Newbie


Joined: 14 November 2005
Location: Ukraine
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Miroslaw Quote  Post ReplyReply Direct Link To This Post Topic: Problem with CaptionMetrics
    Posted: 15 November 2005 at 5:06am

 

When I write these lines of code:

  Set SubCategory = Category.AddChildItem(PropertyItemFont, "Font", Me.Font)
  SubCategory.CaptionMetrics.ForeColor = vbBlue

All is OK.

But when I write these lines of code:

  Set SubCategory = Category.AddChildItem(PropertyItemFont, "Font", Me.Font)
  SubCategory.CaptionMetrics.Font.Bold = True

I recieve error message: "Object variable or With block variable not set"

Where is my fault?

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.188 seconds.