Wisej2 TabControl Remove/RemoveAt

Answered
0
0

Hi,

It seems that there is a bug with the RemoveAt / Remove functions of a TabControl.

Doing :

tabControl1.TabPages.RemoveAt(tabControl1.SelectedIndex);

or

tabControl1.TabPages.Remove(tabControl1.TabPages[tabControl1.SelectedIndex]);

Creates a NullReferenceException error.

With following Stack Trace :

   at Wisej.Web.Control.AssignParent(Control parent)
at Wisej.Web.TabPage.AssignParent(Control parent)
at Wisej.Web.Control.ControlCollection.<>c__DisplayClass23_0.<Remove>b__0()
at Wisej.Core.IWisejSynchronizedImplementation.Lock(IWisejSynchronized target, Action action)
at Wisej.Web.Control.ControlCollection.Remove(Control child)
at Wisej.Web.TabControl.ControlCollection.Remove(Control control)
at Wisej.Web.Control.ControlCollection.Remove(Control child)
at Wisej.Web.TabControl.TabPageCollection.RemoveAt(Int32 index)
at Wisej2_Tab.Page1.button1_Click(Object sender, EventArgs e) in D:\VStudio\LULM-ONLY\VS2015\TESTING\Wisej2_Tab\Wisej2_Tab\Page1.cs:line 16
at Wisej.Web.Control.OnClick(EventArgs e)
at Wisej.Web.Button.OnClick(EventArgs e)
at Wisej.Web.Button.PerformClick()
at Wisej.Web.ButtonBase.ProcessExecuteWebEvent(WisejEventArgs e)
at Wisej.Web.ButtonBase.OnWebEvent(WisejEventArgs e)
at Wisej.Web.Control.Wisej.Core.IWisejComponent.Event(WisejEventArgs e)
at Wisej.Web.Application.ProcessWebEvents(WisejEventArgs e)
at Wisej.Web.Application.OnWebEvent(WisejEventArgs e)
at Wisej.Web.Application.Wisej.Core.IWisejComponent.Event(WisejEventArgs e)
at Wisej.Core.ComponentManager.DispatchEvents(Session session, ICollection events)
at CallSite.Target(Closure , CallSite , ComponentManager , Session , Object )
at Wisej.Core.ResponseManager.<>c__DisplayClass26_0.<OnEvent>b__0()
at Wisej.Core.IWisejSynchronizedImplementation.Lock(IWisejSynchronized target, Action action)
at Wisej.Core.ResponseManager.OnEvent(Session session, Object message)
at CallSite.Target(Closure , CallSite , ResponseManager , Session , Object )
at Wisej.Core.ResponseManager.ProcessRequest(ServiceType service, Object message)

Wisej 2.0.18.0 /Win10-64

Regards

  • You must to post comments
Best Answer
0
0

Hi Levie,

After upgrade to 2.0.22 the Tab removal Problem is Solved.

Regards.

  • You must to post comments
0
0

Hi Eric,

 

After updating to 2.0.22, the latest development build, do you still get this error?

 

Please let me know!

Best,

Levie

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.