Hi guys and girls
Im experiencing an issue and i dont know if its a bug with infragistics controls or not....
I have 2 inherited controls, 1 inherited control is a ultrawingrid and the other is a normal .net contextmenu.
Ive added the contextmenu(inherited control) to the ultrawingrid(inherited control) so that when i drag the ultrawingrid (inherited control) onto my form it automatiaclly contains a contextmenu.
However there are some issues here.... when i make changes to my form the i get compile errors... the error is related to the initializecomponet of the form. it seems to keep adding a parameter to the contextmenu constructor when it doesnt accept one.
Once i remove the parameter the program compiles. how ever if i make the slightest change to the form and save it initializecomponet adds the parameter again to the contextmenu.
It keeps adding the following:
THIS-OBJECT
:contextMenuStrip1 = NEW System.Windows.Forms.ContextMenuStrip(THIS-OBJECT:components).
Once i remove the THIS-OBJECT:components, the program compiles fine....
Any ideas???
Hi,
I doubt this has anything to do with the grid. It looks to me like your inherited ContextMenuStrip class does not define all of the constructors that the base class has and you need to do this in order to make it works at design-time. So you probably just have to add a constructor to your derived ContextMenuStrip that matches the base class constructor(s).
Hi Mike
Cant believe the solution to the problem was so simple.... :)
seems to be working like a charm so far....
thanks a stack....