Menu With PropertyGrid?
Feb 12, 2011
I need to create kind of a menu in my application in wich I have to set different parameters before I populate a Datagridview with some values.So, the idea is to use a PropertyGris in which from which I can edit some parameters and after that I run a query (with parameters setted by PropertyGrid) tu populate my DGV.For example I create some properties like NAME OF A PROJECT, ID OF PROJECT, RESPONSABLE, etc and I put this properties in a propertyGrid and than the user can interact with the propertyGrid and set value for each parameter, bfore running the query for populating
View 3 Replies
ADVERTISEMENT
Apr 9, 2010
i'm hoping to use a propertygrid in one of my programs.
1/ i'm having difficulty writing a (text) property that will open a multiline editor like the textbox text property in the vb properties window. how would i do that?
2/ i need a way to make either selected properties or preferably entire categories disabled or enabled at runtime.
3/ how can i turn off automatic sorting so my categories + the items they contain are displayed in the order they are in my class?
Imports System.ComponentModel
Imports System.Drawing.Design
Imports System.Text.RegularExpressions
[code]....
View 23 Replies
Mar 15, 2012
I want to add a new PropertyGrid control every time an item is added to a ListBox.I have a ListBox, with an "Add Item" button underneath (and also a "Remove Item" button). Every time an item is added to the list, I want to create a new PropertyGrid corresponding to each item. The relevent PropertyGrid should appear when an item is selected in the ListBox, and the user can edit the properties of that item.
The only way I can think of doing this is by creating a dynamic array which has length ListBox1.items.count, but I'm not sure it's possible to create an array of controls.
View 15 Replies
May 15, 2009
How to dynamically add Datasource Property in propertygrid in vb.net?
View 1 Replies
Feb 11, 2010
PropertyGrid is only scrollig correctly when I place it on a Windows Form, but does not work when it's docked in a SplitContainer Panel. Only the vertical scroll bar is needed for my application. The vertical scroll bar displays correcly and you can move it up and down okay, but the contents of the PropertyGrid (while correct) do not scroll up and down with it. I'm using Visual Studio 2005 Professional Version 8 with .NET Framework 2.0 and coding in Visual Basic. Has anyone found a way around this?
View 1 Replies
Jun 16, 2009
In my propertygrid having one custom property ..suppose some text is there in this item.i want user to allow only delete the item.nothing more like editing ,backspace nothing..only provide delete key option to this property item..
View 4 Replies
Jan 6, 2010
I would like to display a PropertyGrid on a form at runtime to simplify some testing that I am doing. I have it working except that the PropertyGrid does not pickup any extender provider properties (eg ToolTip). How do I make it aware of any extender providers also?
View 4 Replies
Mar 9, 2009
Using <System.ComponentModel.TypeConverter(GetType(System.ComponentModel.ExpandableObjectConverter))> _
on the declaration of a class (which is a property of another class) that consists of a number properties.
I load an instance of this class with simply ...
PropertyGrid1.SelectedObject = oColumn
Obviously I don't want to manually build the propertygrid in code, I know how to do that.
But here's the problem. Depending on the value of a property, certain other properties should not be visible, as though I'd used the <System.ComponentModel.Browsable(False)> _
attribute on the property declaration.Is there anyway to do this programmatically, without having to handle all the building of the property grid manually>
View 3 Replies
Oct 7, 2009
I'm trying to add a custom DropDown to the PropertyGrid for a control. I am adding the TrackBar control.It works fine, except, I would like to have the values updated in the PropertyGrid as I move the TrackBar. As it is now, it only updates the PropertyGrid when I finish and click off the TrackBar.I know the problem lies in the Type Editor. How can I get it to allow interim values to be processed. Is there some callback function I can use?
[Code]...
View 2 Replies
Mar 31, 2009
I am having a problem with objects that have other objects as properties on a property grid. Now when I display the object clsPropsFrame on the property grid, everything shows up as expected, except when I try to edit the x, y, or z of location which is of type clsPropsVec3, it ignores the change. What's strange is that when I type the vector in as a string (like "0, 16, 0"), it changes.
I have the following
'//////////////////Object Component///////////////////////////
<TypeConverter(GetType(ExpandableObjectConverter))> _
Public Class clsPropsVec3
Inherits ExpandableObjectConverter
Private refvec As TV_3DVECTOR
Public Sub New()
[Code] .....
I noticed that when I changed a component of clsPropsVec3, the property change in clsPropsFrame does not get executed. I tried making it fire of an event when a component is changed in clsPropsVec3, with the following additional
Public Property X() As Single
Get
Return refvec.x
End Get
Set(ByVal value As Single)
[Code] .....
But for some reason it ever fires off the ValueChanged event. So how can I make the sub properties of clsPropsVec3 work?
View 10 Replies
May 22, 2009
In my propertygrid having 3 categories..By default these categories displayed on Alphabetical order..But i don't want like this..
Suppose my 3 categories are appearance,Layout,Dynamic Events.. Now it is displaying appearance, Dynamic Events, Layout,
But i want like this appearance,Layout,Dynamic Events..
How can i arrange.. This is the code i will implemented..
<Category("Appearance")> <Description("Indicates how the text should be aligned for the control")> _
Public Property Alignment() As System.Windows.Forms.HorizontalAlignment
Get
[Code]....
View 1 Replies
Aug 18, 2009
Within my PropertyGrid I have decorated a class with the following attributes:
Code:
[Category("Category 1"),
DisplayName("Part Number"),
SortOrderAttribute(1)]
Dim PN1 as String
[Code]...
The problem is that when PN2 is changed in the PropertyGrid, it causes a refresh of all cells. Since both properties have the same DisplayName, but different Categories, the focus is set to PN1 and not PN2 after PN2 is edited.
View 1 Replies
Sep 25, 2009
I have written a Type Converter for a TrackBar. I was wondering if there is any way to get the value being changed in the Dropdown so I can update the PropertyGrid item value dynamically instead of just at the end?
Here is the Type Converter code:
Code:Imports System.Windows.Forms.Design
Public Class Slider
Private editorService As IWindowsFormsEditorService
Private m_Value As Integer
[Code]...
View 7 Replies
May 26, 2010
We are using the .NET PropertGrid to edit the Usersettings of our application. If we use Strings or integers than it works perfectly. Now we need a propery, we call them "Vendor", that store a GUID of the Vendor from a database. But the user didn?t see the GUID in the PG. he can choose beetwen the venders Names in a combobox. This combobox must be loaded from the database I have start to try to solve that with following
[Code]....
View 2 Replies
Jan 13, 2011
how can i selectively disable propertygrid items, or even categories based on the value of another property? i read somewhere about a typedescriptor but i couldn't find a good example.
View 6 Replies
Jun 1, 2010
I have a custom made control linked to a PropertyGrid at runtime. Some of the properties of my controls are grayed. Why is this happening? I am interested in having some of those editable.
View 1 Replies
Sep 28, 2011
I've been following this article:and have everything working.Under the Support for Custom Types section, it introduces a collapsable type for the spell check options. The option are added together to produce a string that is displayed in the grid in the Spell Check Options row. Is it possible to get this string directly from the 'AppSettings' class or do I need to add another property and copy the code from the ConvertTo and ConvertFrom functions?
View 4 Replies
Apr 11, 2011
I got a properties class that I send to a PropertyGrid. I want to change the [readonly] attribute of some properties in realtime. Below is an example of such a property in vb.net...
<CategoryAttribute("Graph Limits"), _
Browsable(True), _
[ReadOnly](False), _
BindableAttribute(False), _
[code]....
View 2 Replies
Dec 21, 2011
How do I Display A HashSet As Either A Collection or an Array in the PropertyGrid.I wish there was some Attribute that allow me to display IEnumerable as an Array...but so far my attempts to do that have failed!My current solution is unacceptable in the new places I want to use it in
[Code]...
View 3 Replies
Aug 27, 2009
tell me the editor type for a combobox? (for use in propertygrid)Something similar to this:
<EditorAttribute(GetType(System.ComponentModel.Design.CollectionEditor), GetType(System.Drawing.Design.UITypeEditor))>
but for a combobox.
View 2 Replies
Oct 17, 2011
I am devloping a custom designer (like the form designer), which can be used to design custom controls at designtime (see spoiler for screenshot).The problem is that i want to show the propertyes of the currently selected object in the propertygrid window in VS, and i can not figure out how to do that.
View 4 Replies
Aug 12, 2011
I have an object with a property that is a collection. When I point the PropertyGrid to the object it displays the ellipses for the collection. When I click it I get the generic collectioneditor. Of course the Add put fails because my collection is strongly typed. I need an example of how to create a collectioneditor that will create my collection's objects.
View 4 Replies
Jul 22, 2009
in propertygrid having name property .. How to restrict user only type in name property maximum 50 characters.. how to do this..always user is enter only 50 character ..after enter 51 character don't allow to typing.. This is the code i am adding Item in propertygrid..
<Category("Misc")> <Browsable(True)> <DisplayName("(Name)")> <Description("Indicates the name of the control to identify on the page")> _
Public Property Name() As String
Get
[code]...
View 3 Replies
Apr 29, 2009
I put a PropertyGrid control and set the control to be a button on my form and i run it and change some properties and reflected on the button but when i restart the application nothing is saved so i have to save it to the disk like serialize the control is this the right thing?
View 2 Replies
Jan 14, 2010
I can't do this: [URL]
1. Add PropertyGrid to a form in a new Windows Forms Application
2. Add follow Code
Private Sub PropertyGrid1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles PropertyGrid1.KeyDown
MsgBox(e.KeyCode)
End Sub
3. Run the project
4. Click a key and where is the msgbox ?
View 6 Replies
Feb 24, 2010
I'm using a PropertyGrid to display properties of my custom object, but whenever I run the form and input stuff into the collection, it doesn't save... If I open up the CollectionEditor again, its blank.. heres my code
<Editor("System.Windows.Forms.Design.ListControlStringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", GetType(System.Drawing.Design.UITypeEditor)), MergableProperty(True),
[Code]....
View 5 Replies
Apr 17, 2009
I am using VB.NET 2008. I am using propertygrid and have added a few elements. I have 3-4 categories and wanted to know how can I expand/collapse a particular category thru code. I did find a code on net but it didn't work.
View 10 Replies
Aug 12, 2010
I have a custom control and have created some properties for it.When I click on that control, its properties are then shown in the PropertyGrid.The problem, is that I only want to show some of the predefined properties as well as my custom properties.Does anyone know how I can filter out the properties I want shown?
View 9 Replies
Oct 7, 2009
I'm trying to add a custom DropDown to the PropertyGrid for a control. I am adding the TrackBar control. It works fine, except, I would like to have the values updated in the PropertyGrid as I move the TrackBar. As it is now, it only updates the PropertyGrid when I finish and click off the TrackBar... I know the problem lies in the Type Editor. How can I get it to allow interim values to be processed. Is there some callback function I can use?
Here is the Type Converter code:
Imports System.Windows.Forms.Design
Public Class Slider
Private editorService As IWindowsFormsEditorService
[code]....
View 2 Replies
Apr 12, 2010
I would like to display static (shared) objects at runtime in a PropertyGrid but if I try to set the selected object property of the grid like this:
[Code]....
Is there a way to display a static (shared) object or the object's properties in the PropertyGrid?
View 1 Replies