[AccessD] URGENT: Creating Actiive-X control on form

Erwin Craps - IT Helps Erwin.Craps at ithelps.be
Mon Jan 10 17:43:54 CST 2005


I found the problem.
I was copying the OLEdata of a "dxCheckbox" but I needed to copy from a
"dxCheckedit".

The controls look (unformatted) exactly the same, never noticed it....
Stupid of me...

So to correct my previous post the MS article saying to copy the OLE
data from an template form works just fine...


 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert
Sent: Monday, January 10, 2005 9:22 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] URGENT: Creating Actiive-X control on form

Erwin,

I think that it has succesfully created the control. Have you tried this
(TreeView example):

...

Private WithEvents mrTvw As MSComctlLib.TreeView

Set ctlTemp = ' (create your TreeView on the fly...)

Set mrTvw = ctlTemp.Object

rTvw.Nodes.Add(...)   ' your specific property references

...

Private Sub mrTvw_NodeClick(ByVal Node As MSComctlLib.Node)
   ' (your event handlers)
End Sub

...

Access controls make terrible containers for ActiveX controls. Whenever
I use them in Access, I reference the underlying object directly.

-Ken

>This does not seem to fully work.
>It does create the control but some other properties are missing.

>I wonder if theres a  way to make a full copy of the control???
>Erwin



--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list