in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

crf.ChildType = 3 ' what is this parameter?

Last post 06-24-2008 1:57 PM by C1_AndreyD. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-11-2008 1:40 AM

    crf.ChildType = 3 ' what is this parameter?

    IsMdiContainer = True

    Dim crf As ChildRibbonForm = New ChildRibbonForm

    crf.MdiParent = Me

    crf.Text = "MDI Child Form (Type 3)"

    crf.ChildType = 3 ' what is this parameter? Where I can find help file for this?

    crf.Show()

  • 02-11-2008 5:57 AM In reply to

    Re: crf.ChildType = 3 ' what is this parameter?

    I don't know anything about the ChildRibbonForm class and
    the ChildType property. Both things seem to be not related
    to C1Ribbon.

    -Andrey
  • 06-24-2008 12:37 PM In reply to

    Re: crf.ChildType = 3 ' what is this parameter?

    Hi Andrey

    You can find this code in the attached file that i loaded with the folowing link:

    http://download3.componentone.com/pub/Net/c1ribbon/misc/RibbonAppVB.zip

    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

    If TypeOf forms(i) Is ChildRibbonForm Then

    f = CType(forms(i), ChildRibbonForm)

    End If

     Please excuse my english.


    Thanks for your help,

    Regards,

     

    Raul Ramirez 

     


     

  • 06-24-2008 1:57 PM In reply to

    Re: crf.ChildType = 3 ' what is this parameter?

    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
Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.