Re: Please help translate that from C#

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




"Saga" <antiSpam@xxxxxxxxxxxxx> wrote in message
news:OSOlyKgzHHA.1208@xxxxxxxxxxxxxxxxxxxxxxx

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
--



That's what Michael C's post suggests too. I don't know if it would work the
same or not. Is an event an event, regardless? The .Net events often want to
pass along the Sender, for instance, which VB wouldn't expect.


.



Relevant Pages

  • 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: Please help translate that from C#
    ... In VB6, if cSkype were a class, couldn't you declare the ... object at module level using Withevents? ... The problem is that they are suggesting adding an event handler delegate, ...
    (microsoft.public.vb.general.discussion)
  • Re: save statement in a module
    ... IMPLICIT NONE both at the module level and for the ACCUM procedure. ... If you declare a variable with some other attribute it will ...
    (comp.lang.fortran)
  • Re: Dim vs. Public
    ... Procedure level - just visible in the sub it is declared in (with Dim) ... Module level - visible within the module its declared in (with Dim before ... I had to declare them ... even if all the macros were in the same module. ...
    (microsoft.public.excel.programming)
  • Re: Whered My FileObject Reference go in my VB Transformation Script?
    ... > When you declare a procedural level variable, it is only scope'd to that ... The theory goes that this will then become a module level ... my head that all variables in the PreSourceMainfunction of an dts ... activex script had global scope. ...
    (microsoft.public.sqlserver.dts)