Re: Line Pass

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Bee escribió:
I need to pass a Line from a form to a class.
The line is defined with an index = 0.
In the class I need to Load additional lines.
So far all the syntax I tried except pass as object fails.
But passing as object results in code failure in the class. i.e. not doing anything.
So what is the syntax to pass first (0-th).

In the Class
Global (private)

private m_lnLine as Line

Public Property Set SlideEffectsLineWork(ctlLine As Line)

Set m_lnLine= ctlLine

End Property 'Set SlideEffectsLineWork

' in a sub in the class

Load m_lnLine(1)
m_lnLine(1).Visible = True

etc.


Is the ctlLine an array of Line controls, a Line control part of an array, or a single Line control (not in array)?
.



Relevant Pages

  • Re: arrays
    ... I am building a .net control in C++/CLI, and it will be hosted by a C# ... The form will load some data from file and pass it to the ... I doubt you want to pass the array and length though, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: "Out of Memory" error when loading the new text box
    ... When the text exceeds 64k limit, my code loads the next textbox, writes ... until code tries to load txtTapiLog. ... You aren't really doing anything wrong, the control array just can't be so ... I remember getting the same error with an array of combo boxes. ...
    (microsoft.public.vb.general.discussion)
  • Re: object array?
    ... I remember in vb6 there was 1 function for each event that was used ... for the entire array and the index was simply a calling argument. ... Where you load the PictureBoxchange the code to load your new control. ... Then you have a simple method to create code that will be executed for every control. ...
    (microsoft.public.dotnet.languages.vb)
  • Thanks - Re: Createing Controls
    ... Thanks Wart - I'd tried Help Create etc - never thought of Load! ... Make an array of controls based on the control type you want. ... >> Jim Bunton ...
    (microsoft.public.vb.general.discussion)
  • Re: Adding controls to a VBA Collection
    ... I have tried several different syntax ... I see the value of the control. ... Dim ctl As Control ... Just use an array. ...
    (comp.databases.ms-access)