Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1775
Ultrawingrid inherited control bug??
posted

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???

Parents
  • 469350
    Offline posted

    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).

Reply Children
No Data