FIX: Designer does not call IPerPropertyBrowsing::GetPredefinedStrings to update the Properties window (325663)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition

This article was previously published under Q325663

SYMPTOMS

A Microsoft ActiveX control may provide display strings for a property through the IPerPropertyBrowsing interface. The Properties window caches these values. However, these values are not updated in the cache when display strings dynamically change. The set of display strings that is provided may depend on other properties of the ActiveX control.

Also, when you change the DISPID of the property (or when DISPID is set to DISPID_UNKNOWN), and the ActiveX control calls IPropertyNotifySink::OnChanged, the value of a property in the Properties window may not be updated.

In the Properties window, when you change the Name property for an ActiveX control in the Windows Forms Designer, the ActiveX control does not call the control IOleControl::OnAmbientPropertyChange(DISPID_AMBIENT_DISPLAYNAME).

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio .NET service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question. The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version       Size       File name
   ---------------------------------------------------------------------
   17-Aug-2002  07:40  1.0.3705.308  1,175,552  System.data.dll
   17-Aug-2002  07:38  1.0.3705.308  1,986,560  System.windows.forms.dll
   16-Aug-2002  04:05                   16,616  System.windows.forms.ldo
   16-Aug-2002  04:01  1.0.3705.308     57,344  System.windows.forms.tlb
Note This fix requires .NET Framework Service Pack 1 (SP1). If you must have this fix for .NET Framework SP2, click the article number below to view the article in the Microsoft Knowledge Base:

328535 INFO: Post-Service Pack 2 .NET Framework System.Data and WinForms hotfix package

If you experience this problem with the Visual C++ .NET designer, click the article number below to view the article in the Microsoft Knowledge Base:

322194 FIX: Visual C++ Designer does not call IPerpropertyBrowsing::GetPredefinedStrings to update properties window

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MinorLast Reviewed:10/11/2005
Keywords:kbHotfixServer kbQFE kbvs2002sp1sweep kbbug kbfix kbQFE KB325663