Results 1 to 27 of 27

Thread: Error

  1. #1

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    I have an error adding the masked edit control to my project. It says this:

    "Name conflicts with existing module, project, or object library."

    What reference or component could be causing this problem?
    Normal is boring...

    smh

  2. #2
    Guest
    Do you have a sub, function, variable, class, form or module with the same name as the masked edit control??? That would cause the error.

    Gerco.

  3. #3
    Addicted Member Nice's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    144

    Red face

    can be a Version Conflict of the control. Some dlls cause the same problem. like we try to add a DAO library from the reference menu when another version of DAO (old or new) is selected , we get the same error.

  4. #4

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    How do you know the name of the masked edit control? Is it msmask? If it is, then I don't have anything named the same.
    Normal is boring...

    smh

  5. #5

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    I checked the dependency viewer, and I don't see any version conflicts there between the project's components already and the msmask component.

    Any other suggestions?

    I really need this in my project.
    Normal is boring...

    smh

  6. #6
    Addicted Member Nice's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    144

    Red face

    try to unregister the control using regsvr32 /u and then try registering again. hope it works..

  7. #7
    Addicted Member atif's Avatar
    Join Date
    Jan 2001
    Location
    New Jersey, USA
    Posts
    149
    can you please post your code...?
    Atif AKA AK
    VB 5.0
    VB 6.0 Professional
    VBA, Macros, JAVA, C++

  8. #8

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    What code are you referring to?
    Normal is boring...

    smh

  9. #9
    Addicted Member atif's Avatar
    Join Date
    Jan 2001
    Location
    New Jersey, USA
    Posts
    149
    Where it tells you that
    "Name conflicts with existing module, project, or object library."
    Atif AKA AK
    VB 5.0
    VB 6.0 Professional
    VBA, Macros, JAVA, C++

  10. #10

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    It's giving me the error when I try to add the component to the project, not in any of my code.

    (When you go project|components on the menu)
    Normal is boring...

    smh

  11. #11
    Addicted Member atif's Avatar
    Join Date
    Jan 2001
    Location
    New Jersey, USA
    Posts
    149
    Sorry my mistake...

    Which component would you like to add?
    Atif AKA AK
    VB 5.0
    VB 6.0 Professional
    VBA, Macros, JAVA, C++

  12. #12

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    The masked edit box
    Normal is boring...

    smh

  13. #13
    Addicted Member atif's Avatar
    Join Date
    Jan 2001
    Location
    New Jersey, USA
    Posts
    149
    look for this file

    MSMASK32.OCX

    If you have Windows NT, it should be in your C:\WINNT\system32\MSMASK32.OCX or else just find it. When you go to add components, try to browse it through there to, but make sure where the file is first. Hope it helps. Let me know.....
    Atif AKA AK
    VB 5.0
    VB 6.0 Professional
    VBA, Macros, JAVA, C++

  14. #14

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    Please read my above posts, and you will see that I have already tried that, and that is how I got the error.
    Normal is boring...

    smh

  15. #15
    Addicted Member atif's Avatar
    Join Date
    Jan 2001
    Location
    New Jersey, USA
    Posts
    149
    okay its called the option component:

    Microsoft Masked Edit Control 6.0
    where MSMASK32.OCX, will be taken from.
    Atif AKA AK
    VB 5.0
    VB 6.0 Professional
    VBA, Macros, JAVA, C++

  16. #16

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    I know...

    I have already added the reference, and then I get the error.
    Normal is boring...

    smh

  17. #17
    Addicted Member atif's Avatar
    Join Date
    Jan 2001
    Location
    New Jersey, USA
    Posts
    149
    Which version of VB are you using?
    Atif AKA AK
    VB 5.0
    VB 6.0 Professional
    VBA, Macros, JAVA, C++

  18. #18

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    6.0
    Normal is boring...

    smh

  19. #19
    Addicted Member atif's Avatar
    Join Date
    Jan 2001
    Location
    New Jersey, USA
    Posts
    149
    If you attempt to enter a character that conflicts with the input mask, the control generates a ValidationError event. The input mask prevents you from entering invalid characters into the control.

    The Masked Edit control has three bound properties: DataChanged, DataField, and DataSource. This means that it can be linked to a data control and display field values for the current record in the recordset. The Masked Edit control can also write out values to the recordset.

    To clear the Text property when you have a mask defined, you first need to set the Mask property to an empty string, and then the Text property to an empty string:

    MaskedEdit1.Mask = ""
    MaskedEdit1.Text = ""

    Which method are you trying to apply from Masked Edit Control/Box??
    Atif AKA AK
    VB 5.0
    VB 6.0 Professional
    VBA, Macros, JAVA, C++

  20. #20

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    You don't understand! I can't add the control to my project because of some error adding it to the project. Therefore, I am not using it anywhere in my project, because it's not a component.
    Normal is boring...

    smh

  21. #21
    Addicted Member Nice's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    144

    Red face

    try unregistering all the ocx's and try registering again. Or install the OCX from one of the Visual Studio cds. I don't remember the CD No. U'll find the Cab/Zip files of almost all the OCXs there.

  22. #22

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    I completely uninstalled an reinstalled VB yesterday to try to fix this problem. I tried unregistering when you posted the suggestion first, and it won't even let me unregister the ocx.
    Normal is boring...

    smh

  23. #23
    Addicted Member atif's Avatar
    Join Date
    Jan 2001
    Location
    New Jersey, USA
    Posts
    149
    I have added that component into this attatched file. can you use it now? All you gotta do is, copy paste all the code and form you got into this one. dis it help. let me know?
    Attached Files Attached Files
    Atif AKA AK
    VB 5.0
    VB 6.0 Professional
    VBA, Macros, JAVA, C++

  24. #24
    Addicted Member Nice's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    144

    Wink

    u can't unregister when it's in use. Did u close all apps(or restart OS) and tried? it is a Version Conflict I guess.

  25. #25
    Addicted Member atif's Avatar
    Join Date
    Jan 2001
    Location
    New Jersey, USA
    Posts
    149
    DID IT WORK??
    Atif AKA AK
    VB 5.0
    VB 6.0 Professional
    VBA, Macros, JAVA, C++

  26. #26

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    I will get back to you guys in a little while. I have to leave for a while.
    Normal is boring...

    smh

  27. #27
    Addicted Member atif's Avatar
    Join Date
    Jan 2001
    Location
    New Jersey, USA
    Posts
    149
    u there?
    Atif AKA AK
    VB 5.0
    VB 6.0 Professional
    VBA, Macros, JAVA, C++

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