?
Solved

Inherit a controls content and properties from one form to another

Posted on 2002-07-18
6
Medium Priority
?
161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 400 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

762 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