[MonoDevelop] Adding own component to toolbox

Ian Norton ian.norton-badrul at thales-esecurity.com
Tue Sep 4 14:02:33 UTC 2012


I believe you add a System.ComponentModel.ToolboxItemAttribute to your 
class like so:

using System.ComponentModel;


[ToolboxItem]
public class  UniversalComboBoxGTKSharp : Gtk.ComboBox {
}

On 04/09/12 14:43, blazi23 wrote:
> Hello everyone!
>
> I start to learn MonoDevelop and I will try to use it with NHibernate, but my first problem is I can't add my own toolbox item to the list. I would like to use it in UI Designer instead of manually typing it in *.cs.
>
> I have class:
>
> public class UniversalComboBoxGTKSharp : Gtk.ComboBox
>
> How can I do this?
>
> PS. This class is in seperate *.dll. I was tring to add this using "Add toolbox item". I point on my dll file and there is error message: "The file ... does not contain any components"...
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



More information about the Monodevelop-list mailing list