Results 1 to 14 of 14

Thread: Two OCX Questions: List And Control

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Two OCX Questions: List And Control

    Hello everyone!

    I have two questions related to OCX development:

    1.- How can I achieve a List Property like the one the ComboBoxes have? (Please check the picture)
    2.- One of my events could use a Control as its parameter, just like DragOver and DragDrop do... But whenever I try to add it like this:

    Public Event MyEvent(ctrlGiven As Control)

    the following error raises:

    "Compile error:

    Private object modules cannot be used in public object modules as parameters or return types for public procedures, as public data members, or as fields of public user defined types
    "

    So... Is there a way to pass a Control as a parameter? I mean, without doing something like this:

    Public Event MyEvent(ctrlGiven As Object)

    Thank you for your time!
    Attached Images Attached Images  
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width