Click to See Complete Forum and Search --> : Adding MSForms to my project


rick
July 9th, 2001, 05:02 PM
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
rguay@i4i.com
www.i4i.com

Rick
July 9th, 2001, 05:02 PM
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
rguay@i4i.com
www.i4i.com

Clearcode
July 10th, 2001, 03:18 AM
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