Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
L

Luis Barreira

@Luis Barreira
About
Posts
9
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Readonly property on PropertyGrid
    L Luis Barreira

    I've tried that, and I also tried declaring the variable as private readonly NestedClass _xy; but it still let's me edit XY's properties...

    C# question help

  • Readonly property on PropertyGrid
    L Luis Barreira

    I hava a situation where I have a class that contains objects os other classes that are to be readonly (the whole thing is initialized in the constructor, and the gris is used only to show the results). The problem is that the TypeConverters for some of the inner objects are allowing to edit the object: using System; using System.ComponentModel; namespace PropertyTest { public class SimpleClass { private NestedClass _xy; private int _z; public NestedClass XY { get { return _xy; } } public int Z { get { return _z; } } public SimpleClass() { _xy = new NestedClass(1, 2); _z = 3; } } [TypeConverter(typeof(NestedClassConverter))] public class NestedClass { private int _x; private int _y; public int X { get { return _x; } set { _x = value; } } public int Y { get { return _y; } set { _y = value; } } public NestedClass(int x, int y) { _x = x; _y = y; } } public class NestedClassConverter : ExpandableObjectConverter { public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { if (destinationType == typeof(NestedClass)) return true; return base.CanConvertTo(context, destinationType); } public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(System.String) && value is NestedClass) { NestedClass nc = (NestedClass)value; return nc.X.ToString() + "," + nc.Y.ToString(); } return base.ConvertTo(context, culture, value, destinationType); } } } If I create an object of type SimpleClass, I want the property of type NestedClass to be readonly on the propertygrid. How can I do that? Luis Barreira

    C# question help

  • Database and ASP.Net
    L Luis Barreira

    I have a page where I need to show some data in a chart and in a table. The chart will be generated on the fly by another aspx page, something like "", the table will be generated with a simple datagrid. Can I share the same dataset to generate the chart and populate the grid or must I use a different one for each page (querying the database twice)?

    Web Development csharp css asp-net database question

  • Favourite UI
    L Luis Barreira

    You shold check the "Interface Hall of Shame" on http://www.iarchitect.com/mshame.htm

    The Lounge csharp visual-studio design adobe

  • Dynamic creation of objects
    L Luis Barreira

    Is it possible to build a string with a class name and then create a C++ object of that type using some kind of rtti?

    C / C++ / MFC c++ question

  • Hide classes from ClassView
    L Luis Barreira

    How can I hide several classes and typedefs from the class view tree?

    C / C++ / MFC question data-structures

  • OLE DB Consumer Templates
    L Luis Barreira

    How can I execute a SQL command using the OLE DB Consumer Templates? I don't want anything complicated like returning data, I just want to do a bunch of INSERT and UPDATE statments at once.

    C / C++ / MFC database question wpf com announcement

  • AVIs for CAnimateCtrl
    L Luis Barreira

    Can anyone suggest me a tool to create AVI files for use with CAnimateCtrl, preferably one that allows to create 16 color AVIs?

    C / C++ / MFC question

  • Label on toolbar button
    L Luis Barreira

    How can I create buttons with labels on a toolbar, like the Search, Favorites and History buttons on the Internet Explorer 5 toolbar?

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups