Hi Raul,
I have just updated the RibbonAppVB sample on the download3 site:
http://download3.componentone.com/pub/Net/c1ribbon/misc/RibbonAppVB.zip
The previous version of this sample was actually not a sample. It was
a bug-tracking project not indended for public using.
> This is a very good example, however the child ribbon form is just one form
> with multiple instances. The solution that i'm building has many forms and
> i have not been able replace the folow code with the different forms that could
> be loaded at one time by the user.
>
> Dim f As ChildRibbonForm = Nothing
>
> IfTypeOf forms(i) Is ChildRibbonForm Thenf = CType(forms(i), ChildRibbonForm)
>
> EndIf
You may inherit each of your forms from the ChildRibbonForm class.
The only difference between the ChildRibbonForm and the C1RibbonForm
classes is in the next code fragment (see ChildRibbonForm.Designer.vb file):
----------------------------------------------------------------------------
Partial Class ChildRibbonForm
Inherits C1.Win.C1Ribbon.C1RibbonForm
' This variable allows to exclude the window that is being disposed from the MDI Window List.
Friend BeingDisposed As Boolean = False
' Form overrides dispose to clean up the component list.
_
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
BeingDisposed = True
If disposing AndAlso components IsNot Nothing Then
....
----------------------------------------------------------------------------
Here we define the BeingDisposed friend field that is used in the
RefreshMdiWindowList() method of the MDI parent form class.
Regards,
-Andrey