Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: load assemble with xml Pin
PIEBALDconsult6-Apr-10 5:25
mvePIEBALDconsult6-Apr-10 5:25 
GeneralRe: load assemble with xml Pin
billy_iii6-Apr-10 6:19
billy_iii6-Apr-10 6:19 
GeneralRe: load assemble with xml Pin
Not Active6-Apr-10 6:26
mentorNot Active6-Apr-10 6:26 
GeneralRe: load assemble with xml Pin
billy_iii6-Apr-10 9:32
billy_iii6-Apr-10 9:32 
GeneralRe: load assemble with xml Pin
Not Active6-Apr-10 9:47
mentorNot Active6-Apr-10 9:47 
QuestionC#, DataGridView, Allow user to reposition columns Pin
RobScripta6-Apr-10 3:14
professionalRobScripta6-Apr-10 3:14 
QuestionPropertyGrid fails to group a property marked as being in Category Behavior. Pin
Paw Jershauge6-Apr-10 2:16
Paw Jershauge6-Apr-10 2:16 
AnswerRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Eddy Vluggen6-Apr-10 5:31
professionalEddy Vluggen6-Apr-10 5:31 
Paw Jershauge wrote:
Try display this in the PropertyGrid.

I've tried using your code, and it seems to work;
C#
public partial class MainForm : Form
{
    PropertyGrid grid = new PropertyGrid();
    Demo myDemo = new Demo();
	
    public MainForm()
    {
        InitializeComponent();
		
        grid.Dock = DockStyle.Fill;
        grid.SelectedObject = myDemo;
        Controls.Add(grid);			
    }
}
public class Demo
{
    [Category("Behavior")]
    public int Total
    {
        get;
        set;
    }
}
Are you inheriting from Object, as the snippet suggests?
I are Troll Suspicious | :suss:

GeneralRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Paw Jershauge6-Apr-10 8:11
Paw Jershauge6-Apr-10 8:11 
GeneralRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Eddy Vluggen6-Apr-10 9:18
professionalEddy Vluggen6-Apr-10 9:18 
GeneralRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Paw Jershauge6-Apr-10 11:10
Paw Jershauge6-Apr-10 11:10 
GeneralRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Eddy Vluggen6-Apr-10 16:23
professionalEddy Vluggen6-Apr-10 16:23 
GeneralRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Paw Jershauge6-Apr-10 20:44
Paw Jershauge6-Apr-10 20:44 
NewsRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Paw Jershauge6-Apr-10 22:12
Paw Jershauge6-Apr-10 22:12 
GeneralRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Eddy Vluggen6-Apr-10 23:11
professionalEddy Vluggen6-Apr-10 23:11 
AnswerRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Paw Jershauge13-Apr-10 10:37
Paw Jershauge13-Apr-10 10:37 
GeneralRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Eddy Vluggen13-Apr-10 11:09
professionalEddy Vluggen13-Apr-10 11:09 
GeneralRe: PropertyGrid fails to group a property marked as being in Category Behavior. Pin
Paw Jershauge13-Apr-10 12:24
Paw Jershauge13-Apr-10 12:24 
QuestionMessage Removed Pin
6-Apr-10 2:10
mrkeivan6-Apr-10 2:10 
AnswerRe: coding for a software which is gonna run on a server Pin
Pete O'Hanlon6-Apr-10 3:35
mvePete O'Hanlon6-Apr-10 3:35 
AnswerRe: coding for a software which is gonna run on a server Pin
PIEBALDconsult6-Apr-10 4:34
mvePIEBALDconsult6-Apr-10 4:34 
GeneralRe: coding for a software which is gonna run on a server Pin
mrkeivan6-Apr-10 7:25
mrkeivan6-Apr-10 7:25 
GeneralRe: coding for a software which is gonna run on a server Pin
PIEBALDconsult6-Apr-10 9:13
mvePIEBALDconsult6-Apr-10 9:13 
QuestionHow i can create dvdplayer in directshow? Pin
Nematjon Rahmanov6-Apr-10 1:44
Nematjon Rahmanov6-Apr-10 1:44 
QuestionPanel array [modified] Pin
peropata6-Apr-10 1:36
peropata6-Apr-10 1:36 

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.