Upgrade Plug-in

I have to upgadre a Plug-in from Rhino5 to Rhino6. In the actual version I use this function:

Public Overrides Function OnLoadPlugIn() As Integer
If (m_docking_dialog Is Nothing) Then
m_docking_dialog = New MenuEle()
Dim cb As New RMA.UI.MRhinoUiDockBar(MenuEle.BarID(), “RI_Menu”, m_docking_dialog)
RMA.UI.MRhinoDockBarManager.CreateRhinoDockBar(Me, cb, False)
LoadMnuEle()
End If
m_menu = New PlugInMenu()
InsertPlugInMenuToRhinoMenu(m_menu)
Return 1
End Function

I have two questions:

  1. What’s the function name that I have to use as first function when the plug-in is loading?
  2. With this function I load a form in a dockbar where there is a menu with other functions that the user can run. The items of this menu are loaded from a sql server database table. I have understood that the dockbar are not longer used, so what type of control have I to use?
    Can someone help me, please? Thanks in advance.

Hello, it looks like you are using the deprecated RhinoDotNet SDK, you should use the Rhino Common SDK. You can find a panel example here.