Solved

Inherit a controls content and properties from one form to another

Posted on 2002-07-18
6
157 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA to copy paste columns form one file to other 20 87
using Access 8 68
Error when passing an argument to a vb6 that contains  '/' 7 37
Hide vba in gp 7 94
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

776 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