Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - How to get the value of a item to Font
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to get the value of a item to Font

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


Joined: 23 March 2005
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote camus Quote  Post ReplyReply Direct Link To This Post Topic: How to get the value of a item to Font
    Posted: 23 March 2005 at 1:59pm

Hi,

On my PropertyGrid I have added a item of type Font, with the following code:

PropertyGridItemFont ItemFont = (PropertyGridItemFont)Category.AddChildItem(PropertyItemType .PropertyItemFont, "FontItem", this.Font.ToHfont().ToInt32());

ItemFont.Color = 0xFF0000;

But at time to retrieve the value with the event ValueChanged, It will generate an exception. The code that I am using to get the value is as follow:

Font result= (Font)e.item.Value;

 

Can you tell me the correct way to get the value using C#?

 

Best regards,

Camus

 



Edited by camus
Back to Top
jantje View Drop Down
Newbie
Newbie


Joined: 07 June 2005
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote jantje Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2005 at 3:02am

Hi,

I have the same problem.

Do you have the solution?

thanks........

Best regards,

Jantje

 

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