By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,685 Members | 1,326 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,685 IT Pros & Developers. It's quick & easy.

PropertyGrid Category Appearance

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Cor
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
Nov 20 '05 #2

P: n/a
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
"Cor" <no*@non.com> wrote in message
news:3f***********************@reader22.wxs.nl...
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

Nov 20 '05 #3

P: n/a
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
"Nicolas" <nl*****@hotmail.com> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...
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

Nov 20 '05 #4

P: n/a
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.

"Cor" <no*@non.com> wrote in message
news:3f***********************@reader22.wxs.nl...
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

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.