Click here to Skip to main content
15,917,795 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Compiling Pin
slSoftware3-Oct-06 23:31
slSoftware3-Oct-06 23:31 
GeneralRe: C# Compiling Pin
Christian Graus3-Oct-06 23:35
protectorChristian Graus3-Oct-06 23:35 
GeneralRe: C# Compiling Pin
slSoftware3-Oct-06 23:43
slSoftware3-Oct-06 23:43 
QuestionMaking label transparent on top of a picturebox Pin
JacquesDP3-Oct-06 21:01
JacquesDP3-Oct-06 21:01 
AnswerRe: Making label transparent on top of a picturebox Pin
Chris Buckett3-Oct-06 21:58
Chris Buckett3-Oct-06 21:58 
GeneralRe: Making label transparent on top of a picturebox Pin
JacquesDP3-Oct-06 23:13
JacquesDP3-Oct-06 23:13 
QuestionInheriting a class and using property grid Pin
kselman3-Oct-06 20:38
kselman3-Oct-06 20:38 
AnswerRe: Inheriting a class and using property grid Pin
LongRange.Shooter4-Oct-06 7:09
LongRange.Shooter4-Oct-06 7:09 
I'm not sure if you poorly wrote your question for brevity or if you have problems using English. But I will try to answer your question as I understand it. I suggest you try to be as verbose in your future questions as possible.

An object, whether it is a base object or an inherited object, when placed into a property grid will be processed based on the attributes defined for each public field. If there is a value in an object that you do not want visible, use the [Browsable] attribute to control visibility. If you have elements in the base class that should never be seen, then just make them non-browsable. If, on the other hand, you want the base class visible when it is in the property grid, but not visible when an inherited object is used is a way different problem.

One possible way (which will be a big pain, but will solve your problem) is to have the inherited object be a delegate of the base class. This requires making all public elements in your base class virtual, and in the inherited class you must inherit all elements. The ones that you do not want to polymorph you have the overriden object do nothing else but call the base method.

With all public elements inherited, change the visibility scope with their attributes and see if that does the job of controlling things.
QuestionDetermining file state (open or closed) Pin
Nitin19813-Oct-06 20:20
Nitin19813-Oct-06 20:20 
AnswerRe: Determining file state (open or closed) Pin
Steve :)3-Oct-06 20:46
Steve :)3-Oct-06 20:46 
GeneralRe: Determining file state (open or closed) Pin
Nitin19813-Oct-06 21:04
Nitin19813-Oct-06 21:04 
AnswerRe: Determining file state (open or closed) Pin
S. Senthil Kumar4-Oct-06 4:29
S. Senthil Kumar4-Oct-06 4:29 
QuestionPrevent Application Close / Detech Application started Pin
Major_A3983-Oct-06 16:14
Major_A3983-Oct-06 16:14 
AnswerRe: Prevent Application Close / Detech Application started Pin
LongRange.Shooter4-Oct-06 7:12
LongRange.Shooter4-Oct-06 7:12 
AnswerRe: Prevent Application Close / Detech Application started Pin
Major_A3984-Oct-06 12:35
Major_A3984-Oct-06 12:35 
GeneralRe: Prevent Application Close / Detech Application started Pin
LongRange.Shooter4-Oct-06 14:52
LongRange.Shooter4-Oct-06 14:52 
GeneralRe: Prevent Application Close / Detech Application started Pin
Major_A3984-Oct-06 15:05
Major_A3984-Oct-06 15:05 
QuestionHow to implement a ReceiveCallback function??? Pin
CTaylor893-Oct-06 14:03
CTaylor893-Oct-06 14:03 
AnswerRe: How to implement a ReceiveCallback function??? Pin
Stefan Troschuetz3-Oct-06 21:14
Stefan Troschuetz3-Oct-06 21:14 
GeneralRe: How to implement a ReceiveCallback function??? Pin
CTaylor894-Oct-06 8:45
CTaylor894-Oct-06 8:45 
AnswerRe: remoting in c# Pin
LongRange.Shooter4-Oct-06 7:13
LongRange.Shooter4-Oct-06 7:13 
QuestionUnit Testing Pin
Jamie Nordmeyer3-Oct-06 12:56
Jamie Nordmeyer3-Oct-06 12:56 
AnswerRe: Unit Testing Pin
LongRange.Shooter4-Oct-06 7:15
LongRange.Shooter4-Oct-06 7:15 
GeneralRe: Unit Testing Pin
Jamie Nordmeyer4-Oct-06 7:17
Jamie Nordmeyer4-Oct-06 7:17 
QuestionPath of a current process? Pin
sundar1563-Oct-06 12:47
sundar1563-Oct-06 12:47 

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.