Exposing Constituent Methods to UserControls

I have a usercontrol (VB6.0Ent) containing a graph and wish to let the user access the line method.  The ActiveX Control Interface Manager crashes when I run it for this control, so I wish to know how to do it manually.
AdamB_OpenAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
amebaConnect With a Mentor Commented:
No.
Also, you cannot do:
With Picture1
    .Line (x1,y1) - (x2,y2)
End With
0
 
dhwanilshahCommented:
'in your controls general section, just add these procedures, I am assuming that the graph's name is graph1

public sub gLine(arg1 as long, arg2 as long)
   graph1.line arg1,arg2
end sub
'i hope u ge the drift from this code
0
 
AdamB_OpenAuthor Commented:
I am sorry.  I was more interested in knowing whether the format could be kept the same.
i.e.   if my usercontrol instance is newGraph1 then

newgraph1.line (x1,y1) - (x2,y2)[,color],[BF]
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Vin32Commented:
I guess you can do it with having a public method DrawLine (say) which has the same parameters as Line and simply calls the Line method. Nothing else.

Then you can use
NewGraph1.DrawLine (x1,y1) - (x2,y2)[,color],[BF]

hope that helps.
0
 
amebaCommented:
I hate C!
0
 
AdamB_OpenAuthor Commented:
Sorry, I am new.
0
 
amebaCommented:
OK. Thanks
0
All Courses

From novice to tech pro — start learning today.