OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 12-10-2009, 11:03
aakkaarr aakkaarr is offline
Senior Member
Join Date: Jan 2009
Posts: 164
Default Access Controls by Variable

I have 10 image controls in a form named Image1, Image2.....Image10
How to access a particular control at run time
Suppose I want to access it sequentially,
like 1. Image1, 2. Image2... at 11. Image1

Reply With Quote
Old 12-10-2009, 22:04
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 15
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default ImageControls

You could just loop them like this:
    For i = 1 To 10
        UserForm1.Controls("Image" & i).ControlTipText = "Image" & i
    Next i
This code changes the Tip test for each Image control to its name.

Reply With Quote

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
MultiPage Controls Keefster CorelDRAW/Corel DESIGNER VBA 2 20-04-2009 10:53
Variable form controls based on file system inaph CorelDRAW/Corel DESIGNER VBA 3 03-02-2009 16:35
How to access run-time created form controls ddonnahoe CorelDRAW/Corel DESIGNER VBA 3 14-02-2008 14:44
Object variable or with block variable not set.. m31uk3 Code Critique 2 26-12-2007 13:17
Adding controls to forms at runtime ddonnahoe CorelDRAW/Corel DESIGNER VBA 15 20-12-2005 13:59

All times are GMT -5. The time now is 12:09.

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