PRB: "Invalid Procedure Call or Argument" Error Message When You Call the Invalidate Method of Windows Forms Control (326701)
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 Q326701 SYMPTOMSWhen you call the Invalidate method of a Windows Forms control that is hosted on Microsoft
Internet Explorer, you may receive following error message: Error: Invalid procedure call or argument CAUSEThe control has multiple overloaded Invalidate methods. Because the type libraries do not support multiple
methods with the same name, the multiple methods are appended with suffixes
such as "_2" and "_3". In this case, the Invalidate method with the signature "void Invalidate()" or "sub
Invalidate()" is represented as Invalidate_3(). Depending on the parameters, Internet Explorer cannot resolve
the suffix of the Invalidate method automatically.RESOLUTIONTo resolve this problem, use Invalidate_3() instead of the Invalidate() method.STATUS This
behavior is by design.REFERENCESFor more information, visit the following Microsoft
Developer Network (MSDN) Web site:
Modification Type: | Major | Last Reviewed: | 12/28/2002 |
---|
Keywords: | kbprb kbBrowse kbhtml kbCtrl kbWebForms kbControl KB326701 kbAudDeveloper |
---|
|