Re: Please help translate that from C#

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




In VB6, if cSkype were a class, couldn't you declare the
object at module level using Withevents? That will allow
"access" to the object's event(s) from the module where
it is declared (taking into account scope).

Saga
--


"Steve Gerrard" <mynamehere@xxxxxxxxxxx> wrote in message
news:TfydndZjHLyj-zjbnZ2dnUVZ_gmdnZ2d@xxxxxxxxxxxxxx
The problem isn't really the constructor, which is more or less the Form_Initialize event (heavy
on the less, though).

The problem is that they are suggesting adding an event handler delegate, something that exists
only in .Net land, not in VB6. There is no mechanism in VB6 by which you can assign an event
handler to the cSkype.Reply object, if it is expecting a .Net event handler delegate. If it
doesn't raise an event directly (i.e. it is visible in the dropdowns), you are out of luck.
Presumably cSkype.Reply is itself .Net code, not a COM object.


"Jack" <replyto@it> wrote in message news:ujgFDVZzHHA.1484@xxxxxxxxxxxxxxxxxxxxxxx
What is Form constructor?
Why that cannot be translated?
Jack
"Mike Williams" <mikea@xxxxxxxxxxxxxxxxx> wrote in message
news:eg$WOQXzHHA.1164@xxxxxxxxxxxxxxxxxxxxxxx
"Jack" <replyto@it> wrote in message news:Omaxy8WzHHA.600@xxxxxxxxxxxxxxxxxxxxxxx

into something palatable, I can use in vbasic.
Jack

We haven't got Form constructors here, Jack. This is a Visual Basic newsgroup. The last real
version of Visual Basic was VB6.

Mike








.



Relevant Pages

  • Re: New To Visual Basic 2005
    ... solve is several of my API declares uses Any, ... Declare Function FormatMessage Lib "kernel32" Alias ... hehe my VB6 is probably about as good as your VB .NET. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Indenting details
    ... A module level variable is one that is declared at the top ... declare a module level array to hold each control's ... Dim ctl as Control ... For Each ctl in Me.Section.Controls ...
    (microsoft.public.access.reports)
  • Re: Help! How do I get the SSID of my connection?
    ... I have been unable to find any code I can use in VB6 however. ... Now put Option Explicit back into the module and declare your variables. ... Larry Lard ...
    (microsoft.public.vb.general.discussion)
  • Re: Question about FormClosing(0 event
    ... I'm attempting to declare and capture the ... My declaration of the subroutine ... You're posting to the wrong newsgroup. ... VB6 answers regarding Form closing code, and indeed VB6 answers regarding most other things as well, will not work in the product you are using. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6 date and double data type
    ... Public Declare Sub FooBar() lib "something" ... dim tstamp as Date ... 'How do I pass tstamp to FooBar? ... The function FooBar uses the same OLE_DATE format as VB6, ...
    (microsoft.public.vb.general.discussion)