Error when moving treeview to a tabcontrol

Discussion in 'Questions (Windows Mobile)' started by Peter, May 14, 2007.

  1. Peter

    Peter Member Licensed User

    I'm trying to move a treeview control to a tab page.
    Basic4PPC responds with the error message : Unable to cast object of type 'Dbasic.Other.SwrapObject' to type 'System.Windows.Forms.Control'

    Am I doing something wrong?

    Sub App_Start

       AddLabel (form1,
       AddTextBox (Form1,
       tbc.New1 (
    "Form1", -5,0245280)
    "Form1"55, Form1.Width - 10, Form1.Height - 10)   
    "Data Source = " & AppPath & "\DNH4ppc.sl3")

    End Sub
  2. Erel

    Erel Administrator Staff Member Licensed User

    The right syntax is:

    This is different than regular controls because TreeView is not a built-in control.
  3. Peter

    Peter Member Licensed User

    Thank you, Erel, that works.

    Could i have found that in one of the help-files?

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice