Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Forms, Dialogs, TitleBar, StatusStrip > RadForm and standard form

Not answered RadForm and standard form

Feed from this thread
  • Simon avatar

    Posted on Sep 19, 2011 (permalink)

    Hi 

    I have an application that has been written over the past 4 years. My company has now purchased RadControls for WinForms and so I am going to slowly convert it screen by screen.

    In the meantime though I have a function that is called by all current screens.

    SetupScreen(byval frm as form)

    I want to do different actions if the form is a Telerik RadForm. How do I know if the frm passed to my function is the standard form or a telerik form? Hopefully without changing the signature of my function "SetupScreen"

    Cheers

    Reply

  • Nikolay Nikolay admin's avatar

    Posted on Sep 19, 2011 (permalink)

    Hi Simon,

    Thank you for writing and thank you for choosing RadControls for WinForms.

    In order to understand whether the passed form is a RadForm descendant or not, check whether the type of the frm variable is RadForm:

    Private Sub SetupScreen(ByVal frm As Form)
        If TypeOf frm Is RadForm Then
            'Your new logic
        Else
            'Your existing logic
        End If
    End Sub

    I hope this helps. Write back if you have additional questions.
    Kind regards,
    Nikolay
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Forms, Dialogs, TitleBar, StatusStrip > RadForm and standard form
Related resources for "RadForm and standard form"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]