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?
Printable View
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?
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.
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.
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.
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.
try to unregister the control using regsvr32 /u and then try registering again. hope it works..
can you please post your code...?
What code are you referring to?
Where it tells you that
"Name conflicts with existing module, project, or object library."
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)
Sorry my mistake...
Which component would you like to add?
The masked edit box
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.....
Please read my above posts, and you will see that I have already tried that, and that is how I got the error.
okay its called the option component:
Microsoft Masked Edit Control 6.0
where MSMASK32.OCX, will be taken from. :)
I know...
I have already added the reference, and then I get the error.
Which version of VB are you using?
6.0
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??
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.
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.
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.
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?
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.
DID IT WORK??
I will get back to you guys in a little while. I have to leave for a while.
u there?