Subject: Plugin Tabs are not instaiated correctly
Prev Next
You are not authorized to post a reply.

Author Messages
Richard KUser is Offline

Posts:39

03/17/2008 2:49 PM  
If more the one plugin tab is installed on the Same Control ( Basically attached another Plugin to the Sales Order and select the MaxMind tab and then the plugin ) and the plugin is aware and handles the TabPage Changed event similar to below will result in a System.ArgumentOutOfRangeException: Index 0 is out of range.
Parameter name: index
   at System.Windows.Forms.Control.ControlCollection.get_Item(Int32 index).

This tells me that the Control Collection adds the first tab and then the other tabs are not added correctly.  Whichever Tab pages is instantiated first wins the fight in the control collection.


Richard


"

'''

''' Handles Visibility Aspects of the Control to Maximize Visible Space

'''

'''

'''

'''

Protected Overridable Sub Header_SelectedPageChanged(ByVal sender As Object, ByVal e As DevExpress.XtraTab.TabPageChangedEventArgs)

If e.Page.Controls(0) Is Me Or e.Page Is Me Then

SalesOrderControl_Control.PluginContainerBody.Visible = False

SalesOrderControl_Control.PluginContainerHeader.Dock = DockStyle.Fill

SalesOrderControl_Control.PluginContainerHeader.BringToFront()

End If

End Sub"

You are not authorized to post a reply.
Forums > Connected Business Platform > General > Plugin Tabs are not instaiated correctly



ActiveForums 3.7
Privacy Statement  |  Terms Of Use
Interprise Software Systems International Inc.