Calendar Control 12.0 Refuses Input - winforms

In Microsoft Access, I have a series of forms that require the user to specify a date range. Right now I do this with Calendar Control 12.0. However, at random times, the control refuses to accept any user input (such as changing the date).
Why would the Calendar Control refuse input? Is there any known workaround for this?
I'm running it on my development, which has the control properly registered.

One alternative to the control is a completely API generated Month Calendar derived directly from the Common Control DLL. Another alternative is to use an Access form. Which you can do anything with them you want. There are also links to several downloadable calendar forms at my website.
See the Calendar Tips page at my website In addition there could, likely will, be lots of version problems when you go to distribute the MSCal.OCX.

The Allow Edits property needs to be set to Yes to make changes to the Calendar Control. Somehow, this was set to No on the form with the control, so they would not respond to user input.
The other Data properties, such as Allow Additions, can be set to No on a dialog-style Access form.

Related

AngularJS centralized control management

I have an AngularJS application that grew up over the last months to a dozen of states with over hundred controls (input, combos, etc...).
A security-service gives me a few user-roles back (for instance a "read-only" role).
Now I'd like to know how you guys handle the management of the app's controls? I would like to to have a centralized logic/place where I could set the controls states (grey-out, disable or even hide).
I was thinking to have a own logic/schema of control IDs -> Assign each control a unique HTML ID. like "app.state.panel.control". Then based on that I could en-/di-sable a single, all or a part of the controls (for instance "state.panel.*" would address all controls of one panel).
What do you think? Any documentation discussing this topic? Any known existing Angular modules?
Thanks

XamDatetimeEditor calendar lost

I am working on a big application that relies on Infragistics objects to display info to the user (WPF, Infragistics suite Ver 11.2). Inside the XamDatagrid users can input some dates (internally it uses the XamDatetimeEditor) using either the keyboard or a calendar. Most of the times the calendar is there but sometimes, for no reason (and I've been debugging and checking exceptions) the calendars just disappear, specially when I reload the data (by pressing "Search" again).
I know there is not enough technical data nor code but I just wanted to know if somebody has faced similar issues with this grid/version and how (if you could) solved it.
Thanks!

How can I fix an Access Database missing references, libaries, and objects on Windows 7 Ulti 64bit

Recently I've been given an Access database program to fix from my father, it's an invoicing program, so I can't exactly give it out freely.
Unfortunately I know very little about Access and programming.
I'm fairly sure the developer of this database/program has used quite an old version of Visual Basic, I suspect either 5.0 or 6.0.
I've figured out to open the database file in the Visual Basic editor that comes with Access 2003 and 2010. One of the references state:
MISSING: Microsoft Windows Common Controls 5.0 (SP2)
Location: C:\WINDOWS\system32\COMCTL32.OCX
Language: Standard
However there are various other problems, such as some of the buttons not working fully, such as when ignoring the references problem starting up the database creates a popup that states:
There is no object in this control.
The Customers and Orders buttons seem to work fine, however clicking the reports button causes the program to create another popup that says:
Object doesn't support this property or method.
This popup appears twice.
The report function essentially does: Date From and Date To, using a calender date picker. This then shows the user the orders between those two dates and totals them. At first the Date To calender element seems to work, but the user needs to type into the Form field, normally the calender appears for the user to select from.
As said the calender in the report function does not appear, I suspect this is because it is related to a DirectX component/element that was built on Vista?
Clicking the export customer file button also creates the Object doesn't support this property or method pop up message.
How can I fix this? Is it just a bunch of adjustments needed because of the move from Windows Vista to Windows 7.
I would first suggest you determine if the calendar control is using the common dialog control, or using the ActiveX calendar control that was supplied with Access (up to 2003). While versions of Access after 2007 can use the ActiveX calendar control, it is NOT included with the install. The result here is if your application is dependent on the ActiveX control, the you best stick to using Access 2003. Also keep in mind that during the initial access 2003 install, you need to INCLUDE the calendar control (it is not included by default).
Your broken reference issue(s) can be resolved in about 5 minutes by anyone with Access experience. So once in VBA, I would first set a reference to the common dialog control. If you don’t have version 5, pick the most highest version you have on your computer.
However, for the most part competent developers AVOID using and including such references in their applications (and your troubles now quite much vindicate this good developer practice). In fact I don’t think an Access install ALSO includes a common dialog library. Any VB5 or VB6 application install DOES include the library – but we don’t see a lot of VB6 applications installed, and thus you could in fact be missing that library.
The FileDilog (to browse for a selected file) or a “calendar” to select a date range etc. can be accomplished without a reference to the common dialog control.
Here is a good article on how to resolve reference problems:
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html

How to update or refresh the contents of a ComboBox in a WiX dialog?

I would like to implement the well-known scenario whereby the contents of a ComboBox in a WiX dialog depends upon the contents of a previous TextBox value, as input by the user. This will allow me to drive the installation of a component that needs to run SQL scripts.
First, the user specifies the name of the database server.
Second, I would like the ComboBox to display the list of available databases on said server.
This seems a simple enough request and, as far as I understand it, is not easily supported with Windows Installer / WiX. However, I would like to workaround and implement this behavior as close as is possible.
What would be the closest implementation possible ?
I have tried an explicit pushbutton that triggers a custom action. I have tried a duplicate identical dialog that gets navigated to but I can't seem to combine two behaviors - CA execution and dialog navigation.
The general approach is this:
create a custom dialog which contains the edit box control
create a different dialog which contains the combo box control
on the Next button of the first dialog execute a custom action which populates the combo box on the second dialog
This cannot be done using a single dialog.
Also, you need to write custom code to populate the combo box. You can find some sample VBScript code here: http://www.advancedinstaller.com/user-guide/tutorial-combobox-listbox.html#combolist-examples
It's an example for Advanced Installer, but the sample .VBS custom actions can be used with any setup tool.

CRM 2011 - Choose ribbon to show by javascript

How to pick a certain ribbon to show?
I have a Silverlight webresource inserted across the whole page and I want to show a ribbon of certain entity for it.
I suppose it's possible to do it by calling some javascript from XRM library? But I didn't find anything till now.
Thank you
You might be thinking about this backwards. You don't use JavaScript to pick ribbon to show. You set up ribbon anywhere it could show (using RibbonDiffXml) and then EnableRules and DisplayRules to control where it shows. Enable Rules allow you to specify web resources and use JavaScript to control whether the button is enabled. Unfortunately, CRM won't allow you to use JavaScript to control whether it displays (fingers crossed for future availability).
There are lots of examples out there. Here is one and two I just googled up. Be sure to reference the SDK for all the rules. Finally, if you want to short-cut learning some of the schema, you can use the Visual Ribbon Editor tool.
Note that you can either specify your ribbon customizations to a particular entity (in its RibbonDiffXml subnode) or in the global scope (exporting Ribbon Client Extensions) and use the {!EntityLogicalname} in the Id fields so CRM will generate a unique ID for the node, per entity, when it 'expands' the definition.

Resources