Results 1 to 5 of 5

Thread: Passing a combo as a parameter (tough)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2000
    Location
    Mexico City
    Posts
    306
    Hi !!!

    I need to pass a combo as a parameter... but not the regular combo. I need to pass the combo that is in Microsoft Forms 2.0 Object Library.

    The problem is that the class name is ComboBox. Sounds familiar? It´s the same of the regular combo. I´m getting a Type Mismatch.

    Any ideas???
    Please???
    If things were easy, users might be programmers.

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    I'm sorry I don't know exactly how to do this, but...

    there is a way for latebound typing. You will get to specify which lib and version to use with a sort of as New(Yadda 1.0 ComboThingie).

    I'm sorry I don't remember how to do it, but I do know it is possible. Hopefully someone will remember.

    When you do this, there are certain risks, and you will notice that VS won't fix the case of mybox to myBox.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    just a guess. try As Control isntead of As ComboBox
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    New Member
    Join Date
    Mar 2001
    Location
    France
    Posts
    13

    Wink

    try this:
    cbb as MSForms.combobox

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2000
    Location
    Mexico City
    Posts
    306
    Thanks !!!

    MSForms.combobox worked.
    If things were easy, users might be programmers.

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