Book a Demo

Author Topic: help with custom view - AddTab  (Read 2504 times)

jumbie

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
help with custom view - AddTab
« on: February 26, 2007, 02:23:28 pm »
I have this problem with custom view created by my own user control OCX, please help me:

In VB 6.0, this code does not work:

[font="Courier New"]
Dim lMyUctrl As Project1.UserControl1
 
Set lMyUctrl = Repository.AddTab("Hello", "Project1.UserControl1")
[/font]


The tab is created in EA with name “Hello” correctly, but setting the returned object from AddTab into lMyUctrl is raising run-time error “Type mismatch”.

Can You help me with a little advice?  

Thanks.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile