Re: Error is Object doesn't support this property or method

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"John Olbert" <someone@xxxxxxxx> wrote in message
news:F7DD65A2-4A73-48D0-A374-763E6B5CC493@xxxxxxxxxxxxxxxx
|I did try it without the "ref" and it would not compile. It requires the
"ref".
|
| Thanks.
| --
| John Olbert
|

Right, ByRef is defaulut in VB6.

(ref somestring);

should work. Try to remove the referenced axcontrol from VS unregister the
ocx and reregister before adding the reference back.

Willy.





.



Relevant Pages

  • Re: How to find argument type (in] [out] using reflection?
    ... ByRef, you need to check for ref vs out. ... public class OutParameter ... foreach ) ...
    (microsoft.public.dotnet.framework.clr)
  • Re: How to marshal array of Enums from VB6 to .NET
    ... ByRef. ... Tom ... Prev by Date: ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Passing Date type as reference
    ... sub without Call causes the value to be passed ByVal, rather than ByRef, ... regardless of how the declaration of the variable is defined in the sub's ... The arg is still passed ByRef, but instead of passing a ref to the arg, a ... ref to the value pf the arg is passed. ...
    (microsoft.public.vb.general.discussion)
  • Re: How to find argument type (in] [out] using reflection?
    ... If it is ByRef, how do I ... check for ref vs out. ... Any hint? ... I'm missing something here:( ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Passing Date type as reference
    ... sub without Call causes the value to be passed ByVal, rather than ByRef, ... regardless of how the declaration of the variable is defined in the sub's ... The arg is still passed ByRef, but instead of passing a ref to the arg, a ... ref to the value pf the arg is passed. ...
    (microsoft.public.vb.general.discussion)