How to build an editor like DataSourceListEditor?

How do I make an editor like the DataSourceListEditor in VS.NET 2005 That editor really handy. Instead of showing a dialog, just click to drop down and close up, so good huh



Answer this question

How to build an editor like DataSourceListEditor?

  • sashi34745

    If I understand the question, you want to create a control where you click a drop down and it shows a dialog In the first instance, this would be a dialog, it's just being controlled differently, it's being shown in response to a click on an arrow, and hidden again when you click outside the control, which I assume means it has mouse capture and then closes itself when you click outside it's bounds.



  • Adrian N

    Yes, that's it. I've used Reflector and see lots of interesting thing.
    I've found some links:
    The ColorPicker WinForms Control - http://www.vbinfozine.com/a_colorpicker.shtml
    http://www.classdotnet.com/pages/Design.IWindowsFormsEditorService.html
    http://www.devx.com/DevX/Article/20920/0/page/7

    My favourist is these articles of vbaccelerator:
    http://www.vbaccelerator.com/home/NET/Code/Controls/Popup_Windows/index.asp

    But it seems that .NET 2.0 gives us no good way to do our job. I think helper classes of .NET 2.0 should not be hide from us, but show us how to use them the best way.


  • How to build an editor like DataSourceListEditor?