Solved

Inherit a controls content and properties from one form to another

Posted on 2002-07-18
6
150 Views
Last Modified: 2013-11-25
I am looking for a way to inherit a listboxes list items and item data from another form's listbox without looping through to copy when the new form is loaded.  For instance, I have a list on Form1 with three items and corresponding itemdata values. I load Form2 which has a listbox. I want this listbox to inherit the items from the list on Form1 without copying each item in code.

Is this possible and if so do you have any sample code illustrating it.
0
Comment
Question by:quicdoc
6 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 100 total points
ID: 7163193
previously asked question:
http://www.experts-exchange.com/questions/Q_20284119.html

note: there was no solution, but there is API code to make the looping faster.
0
 
LVL 20

Expert Comment

by:hes
ID: 7163221
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 7163236
that link still loops through each item (albeit through api) which is the same as what is in the link i posted...

i'm thinking there is probably a way to do it using copymemory, but i'm not holding my breath.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 20

Expert Comment

by:hes
ID: 7163264
bobbit31,
Darn proxy didn't refresh so I didn't see your post until I had posted. :)
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8014007
Hi quicdoc,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept bobbit31's comment(s) as an answer.

quicdoc, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 8096066
Comment from expert accepted as answer

Computer101
E-E Admin
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now