El 22/05/2006, a las 17:40, Rafael Vallejo escribió:

Good to see a lot of messages on this discution, but my problem still there, I created a new class and assigned it's super as canvas, but the problem is still there "nilobjectexepction".

;-D  Sorry for that!

But it seems we have already given a (possibly working) solution:

1) Create a canvas in your window. It will be named Canvas1 normally, but you can rename it. Place it out of the window, so that it will not bother you.
2) Begin your sub with:

dim o as new Canvas1


I was wrong in assuming you could directly instantiate a Control (such as Canvas). You can not instantiate Control-based classes as you can non-control-based ones.
Tell us if this works...

(But, anyway... what would you like an array of canvases for? I am answering non-asked questions but, what about if you had just one canvas and an array of pictures? Wouldn't that suit your needs?)

Juan

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to