473,320 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PropertyGrid Category Appearance

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
4 1702
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dave | last post by:
Hi all, To repro the problem I am having: 1. Create a class that derives from System.Windows.Forms.Form 2. Add some controls such as buttons and labels (wherever you want). The default values...
4
by: Robert Hooker | last post by:
Hi all, I'm looking for a way to sort/order the Category text items in a property grid. The grids sort the categories by alpha when the catergories are displayed. Does anyone at Microsoft (or...
0
by: Nicolas | last post by:
I want to display in my application a PropertyGrid showing only AND only the "Appearance" of a control so the user can change it. A the code previously showned are a bit confusing as I'm new in...
3
by: Nicolas | last post by:
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 csharp. Where do I go from:...
2
by: Mevar81 | last post by:
Hi to everybody.I have a problem with the PropertyGrid control.I want to display not all the properties of a generic Control(Button,TextBox,ComboBox,ecc.).In general I don't want to display only...
2
by: Steve Teeples | last post by:
Someone introduced me to PropertyGrid last night. It is a great feature for what I need. A question though. I noticed that when I assign a "TextBox" control to a property grid the description on...
1
by: ANDRES BECERRA | last post by:
Herfried K. Wagner was kind enough to point me to the PropertyGrid control http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwindowsformspropertygridclasstopic.asp I have found a few...
2
by: Lance | last post by:
I want to be able to reset a complex property in a PropertyGrid. I know that for properties that are ValueTypes you can include System.ComponentModel.DefaultValue in the declaration of the property....
3
by: Joe | last post by:
Hi I have a propertygrid that I allow the user to pick a system.color and I want to save to a file to load later onto the propertygrid. String and bool values work but I am unable to save...
2
by: Marco Segurini | last post by:
Hi All, I have a form containing only a PropertyGrid that I use to modify an instance of the following class: class MyClass { Point _point = new Point();
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.