dvplayltd
asked on
Add a new Frame control with VB6 at run - time
Dear experts!
I still use classic VB6, it works very fine in hand which know it very good.
I have a frame fraSavePic(0) – control array. Is there a way to add in run time fraSavePic(1) which will have exactly same properties and event handle for Click event? I’m sure I can do this, could you please help me with code?
More detailed, I the new one Frame to be same size, colour and event for Click as fraSavePic(0) .
I still use classic VB6, it works very fine in hand which know it very good.
I have a frame fraSavePic(0) – control array. Is there a way to add in run time fraSavePic(1) which will have exactly same properties and event handle for Click event? I’m sure I can do this, could you please help me with code?
More detailed, I the new one Frame to be same size, colour and event for Click as fraSavePic(0) .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Well, I try it, it do not produce error, but I almost was ready to write you that do not work.
Why you do not tell me that I need to put here ??? :-)
fraSavePic(1).Visible=true
P.S: I can't belive that it is so simple. VB is great ..last months I do a project in C++ and it is really really AWFUL!
Why you do not tell me that I need to put here ??? :-)
fraSavePic(1).Visible=true
P.S: I can't belive that it is so simple. VB is great ..last months I do a project in C++ and it is really really AWFUL!
ASKER
10x.
Your welcome and I apologize for not including the complete code in my first answer.
or for more flexibility
Load fraSavePic(Ubound(fraSaveP