Solved

Forms in VB5 Dlls

Posted on 1997-06-01
1
134 Views
Last Modified: 2006-11-17
I 've created a form(form1) and placed it in an ActiveX dll project.

in Class1 I've delcared the form as a property of the class:
private F as form1

in Class1_Initialize I create the instance..

set F = new form1

Now the question is, when the user interacts with the form, how can write changes the user made on the form back to the other properties of Class1. (for examble a button on the form changes the value of Class1.SomeProperty

Dave  
0
Comment
Question by:Hitman
[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
1 Comment
 
LVL 3

Accepted Solution

by:
dansari earned 100 total points
ID: 1426675
In form1, declare a variable of type Class1 (say it's moClass), and make a property Set procedure in form1 something like this:

Property Set Class (oClass as Class1)
   Set moClass = oClass
End Property

In Class1_Initialize, after your 'Set F' statement, put in another statement:

Set F.Class = me

Then, whenever anything in form1 changes, you can access and set variables or properties of moClass.
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…
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…

751 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