PropertyGrid Category Appearance

  • Thread starter Thread starter Nicolas
  • Start date Start date
N

Nicolas

I want to display in my application a PropertyGrid showing only the
"Appearance" of a control (ie. textBox) so the user can change it.
Bare with me, I'm new in Dotnet VB.

Where do I go from:
me.PropertyGrid1.SelectedObject = me.Textbox1;

Thank a lot
 
Hi Nicolas
Where do I go from:
me.PropertyGrid1.SelectedObject = me.Textbox1;
Hi x
I think something like this
\\\
Dim myTextbox As New TextBox
myTextbox.Width = 100
myTextbox.Location = New System.Drawing.Point(4, 18)
me.propertyGrid1.Controls.Add(myTextbox)
///
I hope this helps a little bit?
Cor
 
Hi Cor,

???

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
Hi Nicolas,

I do not believe the PropertyGrid control exposes any method/property to
restrict property selection to a certain category. If it's important that
you restrict the property grid, then you *may* have to write your own
control (the only difficulty there will be displaying the items, enumerating
properties of an object is easy).

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
Hi Cor, thank you, but this is not the things I'm looking for
It has to do with ICustomTypeDescription and all that stuff so I can access
the property of the textbox through a PropertyGrid and alter the backcolor
etc... in the Appearance Category. I only want to see the Appearence.
 
Hi Tom.
It was difficult for me what was ment, but because of newby I thougth this
could be the question.
It was wrong, can happen :-))
Cor
 
Back
Top