How to get the value of a item to Font |
Post Reply |
Author | |
camus
Newbie Joined: 23 March 2005 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
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 |
|
jantje
Newbie Joined: 07 June 2005 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
|
Hi, I have the same problem. Do you have the solution? thanks........ Best regards, Jantje
|
|
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 |