>Hi all
>
>I had a Calendar activeX control in one of my form.but today i deleted some of the files from my harddisk,now when i run the form i'm getting a error message Class not registered.
>
>how do i locate the Calendar Control and register it.
>
Without knowing which of many possible Calendar controls it might have been, I can't give you an exact formula. The basics are:
(1) Locate the original distribution that provided the Calendar COntrol. If it doesn't screw things up completely, reinstall using its installation software.
(2) If (1) is not feasible, at leat locate the Calendar Control (it'll have a file extension of .OCX, again, without knowing which control and which version, it's impossible to give a precise file name.) Pray lots. Copy the control to a local hard drive, and issue the command
REGSVR32 full file and path name of the .OCX file on your system(3) If (2) fails, the likelihood is that the .OCX has dependencies on other files (most likely .DLLs or other .OCX files, but not limited to these.) You'll need to determine the dependencies - Visual Studio ships with a tool DEPENDS.EXE, whcih can check for file dependencies - it is not present on your system unless you've got Visual Studio (IOW, not just VFP) and you've installed the Common Tools. Once the necessary files are in place on your system, try (2) again. You may need to register the other files again before you can register the control.