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
R

ravtos

@ravtos
About
Posts
48
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Free Web Host Anyone?
    R ravtos

    http://xtreemhost.com/[^] I haven't use it, but I heard it's quite decent. PS. It's PHP/MySQL though...

    A man has got to know his limitations. Harry Callahan

    The Lounge csharp hosting business question

  • Using my MSDN Licenses
    R ravtos

    Brady Kelly wrote:

    What is Windows Web Server? 2008 without real server stuff?

    Basicly yes.. details are here: compare-core-installation[^] differentiated-features[^] compare-specs[^]

    A man has got to know his limitations. Harry Callahan

    The Lounge question database sql-server visual-studio sysadmin

  • How to programmatically add items to CollectionEditor's list. [modified]
    R ravtos

    I've found solution thanks to .NET Reflector and reflection mechanism. Instead of using SetItems method I'm invoking private method of CollectionForm:

    private void AddItems(IList instances)

    , like this:

    MethodInfo methodInfo = m_collectionForm.GetType().GetMethod("AddItems", BindingFlags.NonPublic | BindingFlags.Instance);
    methodInfo.Invoke(m_collectionForm, new object[] { /* my items here */ });

    PS. See the rest of code in previous post...

    A man has got to know his limitations. Harry Callahan

    Windows Forms question database design tutorial announcement

  • How to programmatically add items to CollectionEditor's list. [modified]
    R ravtos

    Hello! I have a custom collection editor which inherits after CollectionEditor class (System.ComponentModel.Design)and I want to programmatically add items to it's collection (listbox). There is a method 'AddItems' which takes a collection object and items to add, but I cannot figure out what collection object I should pass to it.. So my question is, how I can get to CollectionEditor's inner item's list? [update] Ugh.. proper method name is 'SetItems' [/update] [update 2 - source code]

    public class MyCollectionEditor : CollectionEditor
    {
    private Type m_itemType = null;

        public MyCollectionEditor(Type type)
                : base(type)
        {
                m\_itemType = type;
        }
    
        protected override CollectionForm CreateCollectionForm()
        {
                Button buttonLoadItem = new Button();
                buttonLoadItem.Text = "Load from DB";
                buttonLoadItem.Click += new EventHandler(ButtonLoadItem\_Click);
    
                m\_collectionForm = base.CreateCollectionForm();
    
                TableLayoutPanel panel1 = m\_collectionForm.Controls\[0\] as TableLayoutPanel;
                TableLayoutPanel panel2 = panel1.Controls\[1\] as TableLayoutPanel;
                panel2.Controls.Add(buttonLoadItem);
    
                return m\_collectionForm;
        }
    
        private void ButtonLoadItem\_Click(object sender, EventArgs e)
        {
                if (m\_itemType.Equals(typeof(MyCustomCollection)))
                {                               
                        MyCustomItem item = ...load from DB...
    
                        //definition: SetItems(object editValue, object\[\] value);
                        SetItems( -> what goes here?! <- , new object\[\] { item });
                }
        }
    

    }

    [/update]

    A man has got to know his limitations. Harry Callahan

    modified on Tuesday, July 28, 2009 6:34 AM

    Windows Forms question database design tutorial announcement

  • Software recommendations
    R ravtos

    I'm using Free Download Manager, it has features to explore / crawl websites, besides it's quite cool piece of software..

    A man has got to know his limitations. Harry Callahan

    The Lounge question

  • Wrote a cool little tool that saved me ALOT of work
    R ravtos

    Or you could use auto implemented properties and object initializers.. saved me a lot of typing recently. Declare your class as: public class Test { public int A { get; set; } public string B { get; set; } } And then initialize your object as: Test t = new Test() { A = 1, B = "test" }; Reference

    A man has got to know his limitations. Harry Callahan

    The Lounge csharp database com sysadmin

  • Is gmail down?
    R ravtos

    Is gmail down?[^] Those websites seems like a new internet trend ;)

    A man's got to know his limitations Harry Callahan

    The Lounge question html com tools tutorial

  • 3D Triangulation
    R ravtos

    Well.. I haven't found anything in C#, so I used Joseph O'Rourke's algorithm from "Computational Geometry in C". I was thinking about writing an article about this, but time wasn't by my side ;)

    A man's got to know his limitations Harry Callahan

    Algorithms csharp c++ algorithms

  • Greetings and questions (not code, but business/meta and beer)
    R ravtos

    Forums[^] guide[^] and articles[^] And beer.. Tyskie[^], 2005 Munich award[^] and Leffe[^] Cheers!

    Communism doesn't work because people like to own stuff. Frank Zappa

    The Lounge csharp java business beta-testing question

  • Spring is here!
    R ravtos

    I think it's definitely a bug, but not a subtle one.

    GDavy wrote:

    the whole DB system is written in-house.

    So it's you or your co-workers who forgot about time changes, did your forgot about leap years too? Did you managed to repair this, or you gonna have similar problem in about half a year? Another thing is why your are inventing wheel again, when you have ready functions to operate on date/time.. I would call it a WTF[^] I rest my case.. ;)

    Communism doesn't work because people like to own stuff. Frank Zappa

    Clever Code database help java sysadmin algorithms

  • Legal buds
    R ravtos

    Hello! I've heard about this stuff for the first time link[^] My question is, what is that? What substances does it contains? How does it work? It looks to beautiful to be true.. ;) Cheers!

    Communism doesn't work because people like to own stuff. Frank Zappa

    The Back Room question com

  • Nine Ways to Win at Office Politics
    R ravtos

    bad link

    Communism doesn't work because people like to own stuff. Frank Zappa

    The Lounge com question

  • AMD or not to AMD? That is the question...
    R ravtos

    I have AMD Athlon x2 64 4000+ for some time now.. any problems with it.. If you get decent motherboard that processors are easily overclocked with no drawbacks, I have one of ASRock[^]. And whats more they are so cheap now ;)

    Communism doesn't work because people like to own stuff. Frank Zappa

    The Lounge question

  • Heroes Happen Here MS Launch Events - any fees?
    R ravtos

    There's no fee, at least I haven't pay a dime..

    Communism doesn't work because people like to own stuff. Frank Zappa

    The Lounge com question

  • To do something new with .net????
    R ravtos

    Dear kind sir yogesh from Chhattisgath (inida) I understand Your position, there I propose You a bussiness agreement. I will become Your mentor/teacher and I will provide You with great ideas to implement and to fascinate Microsoft executives. On Your part, when You will become Microsoft employee (of any kind) You will give me 25% of Your income (after taxation), however when You will become top layer Microsoft employee You will give me 50% of Your income (after taxation). Any details are negotiable. Thank You for Your consideration Sir! Cheers!

    Communism doesn't work because people like to own stuff. Frank Zappa

    IT & Infrastructure csharp asp-net help question

  • To do something new with .net????
    R ravtos

    Well, why don't you try and develope something for this experimental OS from Microsoft called Singularity[^] Your welcome kind Sir!

    Communism doesn't work because people like to own stuff. Frank Zappa

    IT & Infrastructure csharp asp-net help question

  • How many times in a day do you say...
    R ravtos

    Since yesterday, when I installed SP1 for Vista I had bsod 4 times; everytime for different reason :mad: So I hear you man! ;) Cheers!

    Communism doesn't work because people like to own stuff. Frank Zappa

    The Lounge question delphi css com json

  • Kansas Police: Woman Pried From Boyfriend's Toilet After Sitting on It for 2 Years [modified]
    R ravtos

    :omg: just :wtf:

    The Lounge html com question announcement

  • Horror Movie Suggestions
    R ravtos

    Ah.. Rutger Hauer.. scary mmm.. Jennifer Jason Leigh .. sweet .. I loved her in Rush[^], but it's starting to be OT, I'll shut up ;)

    The Lounge question

  • Horror Movie Suggestions
    R ravtos

    Haven't seen 'Captivity' but it sounds like 'Saw' spin off ...

    The Lounge 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