Click here to Skip to main content
15,919,749 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom drawing a textbox Pin
shabonaa3-Feb-06 3:51
shabonaa3-Feb-06 3:51 
GeneralRe: Custom drawing a textbox Pin
Marlun3-Feb-06 5:48
Marlun3-Feb-06 5:48 
GeneralRe: Custom drawing a textbox Pin
Dave Kreskowiak3-Feb-06 12:11
mveDave Kreskowiak3-Feb-06 12:11 
GeneralRe: Custom drawing a textbox Pin
Marlun3-Feb-06 5:47
Marlun3-Feb-06 5:47 
GeneralRe: Custom drawing a textbox Pin
Dave Kreskowiak3-Feb-06 12:12
mveDave Kreskowiak3-Feb-06 12:12 
QuestionExcel files Pin
tray_gator2-Feb-06 22:31
tray_gator2-Feb-06 22:31 
AnswerRe: Excel files Pin
Ingo2-Feb-06 23:15
Ingo2-Feb-06 23:15 
QuestionSeveral Question about PropertyGrid Pin
mr_tawan2-Feb-06 22:23
mr_tawan2-Feb-06 22:23 
Hello,

I'm still messing around the PropertyGrid Control, and I still not sure/don't know about some certain point. And I would like to ask something:

1. The relationship between TypeConverter and PropertyGrid is.When PropertyGrid have to show some data, TypeConverter try to convert object into string form and the PropertyGrid will take that string to show. And when PropertyGrid have to store the object, it will call TypeConverter.ConvertTo() to convert it back into object. Am I right ?

2. Is there anyway to customize the text that is represent the property data shown in PropertyGrid's Cell. for example if I have struct like :-

struct SomeInt<br />
{<br />
   public int Current{get;set;};<br />
   public int Min{get;}<br />
   public int Max{get;}<br />
}


Inside some Class, and the PropertyGrid is assigned to that object.

Inorder to use with TypeConverter, I need to supply all of those 3 fields to ToString() method(needed to create new Instance of SomeInt) and provide some mechanism to parse those 3 fields back to SomeInt. However if it show all 3 field in the PropertyGrid's Cell, user may change the min or max number (which is not desired). So Is there anyway to show just the Current value?

What I means is that, instead of show text like "5-(0,100)" (5 is Current, 0 is min and 100 is max), I want it just display 5.

Do I need to create new class that inherit from PropertyGrid myself?

3. Which article should I read if I want to create new class that inherit from PropertyGrid ?

I'm really sorry that this thread is quite long, My English skill is quite rather bad.

Regards and Thanks

Wutipong W.
AnswerRe: Several Question about PropertyGrid Pin
IdUnknown3-Feb-06 5:28
IdUnknown3-Feb-06 5:28 
QuestionTabControl Alignment Pin
happycpp2-Feb-06 22:22
happycpp2-Feb-06 22:22 
Questionhow use Interface for sorting Pin
Sasuko2-Feb-06 22:12
Sasuko2-Feb-06 22:12 
AnswerRe: how use Interface for sorting Pin
Le centriste3-Feb-06 2:16
Le centriste3-Feb-06 2:16 
GeneralRe: how use Interface for sorting Pin
Sasuko3-Feb-06 7:16
Sasuko3-Feb-06 7:16 
GeneralRe: how use Interface for sorting Pin
Le centriste4-Feb-06 9:21
Le centriste4-Feb-06 9:21 
QuestionFill GridView Pin
albCode2-Feb-06 22:11
albCode2-Feb-06 22:11 
QuestionUse user scroolbar with listview Pin
fregolo522-Feb-06 21:26
fregolo522-Feb-06 21:26 
Questionrotate a label Pin
chaturanga2-Feb-06 21:12
chaturanga2-Feb-06 21:12 
AnswerRe: rotate a label Pin
AB77712-Feb-06 21:42
AB77712-Feb-06 21:42 
GeneralRe: rotate a label Pin
Sasuko2-Feb-06 22:09
Sasuko2-Feb-06 22:09 
GeneralRe: rotate a label Pin
Dave Kreskowiak3-Feb-06 1:39
mveDave Kreskowiak3-Feb-06 1:39 
GeneralRe: rotate a label Pin
Dario Solera3-Feb-06 1:43
Dario Solera3-Feb-06 1:43 
GeneralRe: rotate a label Pin
Sasuko3-Feb-06 2:09
Sasuko3-Feb-06 2:09 
GeneralRe: rotate a label Pin
Dario Solera3-Feb-06 2:42
Dario Solera3-Feb-06 2:42 
GeneralRe: rotate a label Pin
Sasuko3-Feb-06 7:20
Sasuko3-Feb-06 7:20 
GeneralRe: rotate a label Pin
Dario Solera3-Feb-06 7:29
Dario Solera3-Feb-06 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.