Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: Project ideas Pin
leppie22-Aug-04 4:01
leppie22-Aug-04 4:01 
GeneralRe: Project ideas Pin
s3mt3x22-Aug-04 4:06
s3mt3x22-Aug-04 4:06 
GeneralRe: Project ideas Pin
WillemM22-Aug-04 6:54
WillemM22-Aug-04 6:54 
GeneralPLZ NEED SOME HELP IN PROJECT Pin
jawaria21-Aug-04 20:30
jawaria21-Aug-04 20:30 
GeneralRe: PLZ NEED SOME HELP IN PROJECT Pin
leppie22-Aug-04 4:02
leppie22-Aug-04 4:02 
GeneralRe: PLZ NEED SOME HELP IN PROJECT Pin
Anonymous22-Aug-04 15:52
Anonymous22-Aug-04 15:52 
GeneralRe: PLZ NEED SOME HELP IN PROJECT Pin
WillemM22-Aug-04 6:56
WillemM22-Aug-04 6:56 
GeneralAdding Properties to a Custom Control Pin
Jeff Monheiser21-Aug-04 15:27
Jeff Monheiser21-Aug-04 15:27 
Hello all,
I'm writing a custom control in which I would like to modify the properties shown on the property grid (within Visual Studio at design time) depending upon the value of a property within the property grid. For example, consider a class called animals. Within that class there is a property that has an enumeration allowing the user to chose between the options human or dog. If they choose human then I would like a property called arms to appear in the same property grid. However, if they chose dog, then that property would need to disappear.

I've added an event handler for the OnComponentChanged event within the ComponentDesigner class and I can determine what the value of the property animal is, but I can't figure out how to add/remove the desired properties from the grid. Can it be dome using the PreFilterProperties function? If so how do I get the IDictionary interface to pass to the function?

Thanks for your help.

Jeff Confused | :confused:




GeneralRe: Adding Properties to a Custom Control Pin
Nick Parker21-Aug-04 20:21
protectorNick Parker21-Aug-04 20:21 
Generalproblem Pin
lonereck621-Aug-04 12:08
lonereck621-Aug-04 12:08 
GeneralRe: problem Pin
Abel AA21-Aug-04 18:54
Abel AA21-Aug-04 18:54 
GeneralRe: problem Pin
J.a.c.k21-Aug-04 22:11
J.a.c.k21-Aug-04 22:11 
GeneralRe: problem Pin
Stefan Troschuetz21-Aug-04 22:22
Stefan Troschuetz21-Aug-04 22:22 
GeneralUsing DirectX in Visual Studio Whitbey Pin
Alex Leshinsky21-Aug-04 9:26
Alex Leshinsky21-Aug-04 9:26 
GeneralRe: Using DirectX in Visual Studio Whitbey Pin
Anonymous22-Aug-04 2:02
Anonymous22-Aug-04 2:02 
GeneralRe: Using DirectX in Visual Studio Whitbey Pin
WillemM22-Aug-04 6:59
WillemM22-Aug-04 6:59 
GeneralRe: Using DirectX in Visual Studio Whitbey Pin
Alex Leshinsky22-Aug-04 9:31
Alex Leshinsky22-Aug-04 9:31 
GeneralDataGrid selection Pin
J.a.c.k21-Aug-04 6:56
J.a.c.k21-Aug-04 6:56 
GeneralRe: DataGrid selection Pin
DougW4821-Aug-04 7:04
DougW4821-Aug-04 7:04 
GeneralRe: DataGrid selection Pin
J.a.c.k21-Aug-04 10:23
J.a.c.k21-Aug-04 10:23 
GeneralRe: DataGrid selection Pin
Jay Shankar22-Aug-04 19:44
Jay Shankar22-Aug-04 19:44 
GeneralRe: DataGrid selection Pin
J.a.c.k23-Aug-04 3:38
J.a.c.k23-Aug-04 3:38 
GeneralRe: DataGrid selection Pin
Jay Shankar23-Aug-04 15:55
Jay Shankar23-Aug-04 15:55 
GeneralRe: DataGrid selection Pin
J.a.c.k24-Aug-04 1:04
J.a.c.k24-Aug-04 1:04 
GeneralRe: DataGrid selection Pin
Jay Shankar25-Aug-04 1:07
Jay Shankar25-Aug-04 1:07 

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.