#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    2
    Rep Power
    0

    Creating MSFlexGrid inside an ActiveX control


    Hi all,

    I am having problem in initializing a msflexgrid control inside my activeX control that I am developing.

    Here is what I do:

    Option Explicit
    Private msflexCustomers As MSFlexGrid

    Private Sub UserControl_Initialize()
    Set msflexCustomers = NewMSFlexGrid
    End Sub

    And this is what I get:

    "Invalid use of new keyword" inside UserControl_initialize method.

    I can not find what the problem is.

    your help is very much appreciated.

    Thank you.

    Ramesh
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2003
    Location
    No es importante
    Posts
    2,065
    Rep Power
    14
    Dim myflexCustomers As New MSFlexGrid
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    2
    Rep Power
    0
    Above comment by victorpendleton does not seem to work for me.

    May be I should restate my problem.


    I have a MSflexGrid control inside my userControl ( ActiveX ) and I want to initialize it before I can make use of it.

    When i do this inside UserControl_Initialize , I get "Invalid use of new keyword".

    Basically, This is my question: where do I initialize my msflexCustomers ( MSFlexGrid ) inside my userControl ?


    Thank you in advance.

IMN logo majestic logo threadwatch logo seochat tools logo