OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16-06-2012, 09:08
noj noj is offline
Member
 
Join Date: Oct 2011
Location: Sydney
Posts: 31
Default Duplicate an image control at runtime

Is it possible to duplicate an image control in a form at runtime? I think I've got my head around basically creating controls at runtime but I need to be able to get the same embedded image from an existing image control into this new control - all during runtime.

Since Copying and Pasting of controls can't be done at runtime, i thought the best way would be to use the UserForm1.Controls.Add function and then just copy attributes from the image control I want to duplicate - but I can't work out how to get the picture info from the existing image control so that I can add it to the newly created one.

I basically want an exact copy and just change it's position on the form and add a little tag in the name of this new image control to identify it as a duplicate for later deletion - again at runtime (QueryClose).

I had a hunt around here and general web but I'm at a dead end.

Thanks.
Reply With Quote
  #2  
Old 18-06-2012, 05:38
noj noj is offline
Member
 
Join Date: Oct 2011
Location: Sydney
Posts: 31
Default

Never mind. Worked it out.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime error click101 Calendar Wizard 11 24-05-2012 13:21
How to calculate image height/width when export to image? lohmac CorelDRAW/Corel DESIGNER VBA 2 29-08-2010 10:07
Runtime Error 6 / Overflow PAnderson CorelDRAW/Corel DESIGNER VBA 2 17-08-2010 20:01
Evaluate an object name at runtime fadimas CorelDRAW/Corel DESIGNER VBA 2 14-03-2007 04:52
Command Button at runtime Michael Cervantes Corel Photo-Paint VBA 3 22-04-2004 00:59


All times are GMT -5. The time now is 00:22.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com