CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Ottawa, Ont
    Posts
    120

    Adding MSForms to my project

    Hi,

    Here's the deal, I have a VB project that has 3 Class modules and one form. On my form I would like to add the textbox from the MSForms (FM20.dll), But VB tells me that it conflicts with an object, form or class Module.

    What I need this textbox for are the events. I keep getting object does not support the events given. even though it gave them to me!?! I have succeded in running the code in VBA.

    Could it be posible that the project got currupted at some point, I DID Import two of the class modules and a form (now removed) from VBA to the project.

    If someone could answer these questions I would be eternaly greatful.

    Thank....

    Rick
    [email protected]
    www.i4i.com

  2. #2
    Join Date
    May 1999
    Location
    Ottawa, Ont
    Posts
    120

    Adding MSForms to my project

    Hi,

    Here's the deal, I have a VB project that has 3 Class modules and one form. On my form I would like to add the textbox from the MSForms (FM20.dll), But VB tells me that it conflicts with an object, form or class Module.

    What I need this textbox for are the events. I keep getting object does not support the events given. even though it gave them to me!?! I have succeded in running the code in VBA.

    Could it be posible that the project got currupted at some point, I DID Import two of the class modules and a form (now removed) from VBA to the project.

    If someone could answer these questions I would be eternaly greatful.

    Thank....

    Rick
    [email protected]
    www.i4i.com

  3. #3
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: Adding MSForms to my project

    The TextBox control intrinsic in Visual Basic shares the same name as the TextBox control in the MSForms control (as it is pretty much the same thing). If you are using standalone Visual basic you need the former and for VBA you use the latter.

    Hope this helps,
    Duncan

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

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

Featured