[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Calendar Control bombs VB in design mode

Posted on 2004-04-06
4
Medium Priority
?
549 Views
Last Modified: 2008-02-01
I have a Calendar Control in a VB program.  I have not worked on the program in a few weeks.  When I go back into the program in design mode, whenever I click on the calendar control, the program says an error has occured and the program must stop.  Is the control corrupted and causing this error?  It would appear i cannot even delete the calendar control because simply clicking on the control is design mode makes VB drop out of memory.  Whats Up?

0
Comment
Question by:dastaub
4 Comments
 
LVL 1

Assisted Solution

by:pawankesari
pawankesari earned 400 total points
ID: 10772121
Can't help you much.

But as far as deleting of the control is concern you can open vbp (Project file) in notepad and delete the reference of Calender Control and save it, then open it in Visual Basic IDE. VB IDE will give you error but finally load the project.

Save a copy of project before doing that.

0
 
LVL 3

Assisted Solution

by:Anant Kuslekar
Anant Kuslekar earned 400 total points
ID: 10772238
In continution to Comment from pawankesari,
Open project.vbp in notepad see the reference control.
.i.e. <ThatCalendar>.ocx
and u can register that ocx using regsvr32.
If license expires u can delete that .ocx line in project file and save in note pad
0
 
LVL 5

Accepted Solution

by:
Pi7 earned 1200 total points
ID: 10772812
dastaub, I've also experienced a similar problem. I don't know what caused it and and I don't know why my solution worked. Maybe you can try it too.
When you open your project in vb, first open your tool box by clicking on its icon in the Tool bar. Only then should you click on any control. (In moving the mouse to click on the tool box icon don't even pass the mouse over a control)

Any method I used was to first run the program immediately after opening my project. After that I could click on any control at design time

Hopefully, it will work for you too

Regards,
Pi7
0
 

Author Comment

by:dastaub
ID: 12139545
the solution turned out to be uninstalling OfficeXP and installing Office 2000.  The error is documented on the Microsoft
web site. The calendar control is corrupted by the OfficeXP install due to lack of backward compatability.  When OfficeXP was
gone and Office 2000 back, it went back to normal.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question