Page 1 of 1
PM3 Active X Control and Visual Studio 2008
Posted: April 1st, 2008, 8:09 pm
by ulu
I have just started playing with
the PMI Active X control. It is a fantastic starter and works exactly as it should in vb in excel.
The problems come when I try to use it in VB.net in visual studio 2008.
If I drop the interface control on the form there is no problem.
If I drop the text control on the form, I get
Run time error '438'
Object doesn't support this property or method
It then invalidates the interface control.
It shows this control in the propery box as AxPMIText1 and does not list all of it's custom properties.
Do I have to give it a path to a .dll or put a .dll in the directory with it?
Do these controls work in vs2008?
Any help appreciated.
Thanx
Jim
Posted: April 2nd, 2008, 2:18 pm
by Citroen
I'm not sure how often Chris Brett logs in over here. So send him a private message with details of your problem with the PMI ActiveX stuff.
http://c2forum.com/privmsg.php?mode=post&u=2810
Posted: April 2nd, 2008, 6:43 pm
by c2scott
I forwarded a link to him this AM; also not sure if he monitors this thread...
http://www.c2forum.com/viewtopic.php?t= ... c&start=15
Posted: April 3rd, 2008, 8:02 am
by Chris Brett
Thanks for the e-mail Scott.
The PMI has not been tested within VS2008 as yet. In theory though it should be possible to function correctly. It may have some teething problems. I think these will be resolved if I upgrade the PMI to the latest Concept2 SDK.
I will have a play with the control within VS2008 and see what happens. When you get a limited list of control properties it usually means that the required *.ocx file has not been referenced correctly.
ulu:
Does the PMI control work correctly within VS2008 with only the PMText control producing the problem? If so anything that can be acomplished with a PMText control can be achieved with a normal TextBox control and 1 line of code. E.g.
Code: Select all
Text1.text = PMI1.DistanceCoveredDP
I will try and find out a bit more this week.
Thanks for the information.
Chris
Posted: April 3rd, 2008, 8:25 pm
by ulu
Chris Brett wrote:
ulu:
Does the PMI control work correctly within VS2008 with only the PMText control producing the problem? If so anything that can be acomplished with a PMText control can be achieved with a normal TextBox control and 1 line of code. E.g.
Code: Select all
Text1.text = PMI1.DistanceCoveredDP
I will try and find out a bit more this week.
Thanks for the information.
Chris
Yes, that is the only problem. I found the incredible set of properties and functions and events you have in the PMI control and realized that the abscence of the text control was a non-issue in VS2008.
My kudos again for creating such a fantastic wrapper. It has saved my progamming time considerably.
Jim
Posted: April 4th, 2008, 11:18 am
by BrianStaff
I was able to get the ActiveX working inside a browser (IE7) using javascript.
see here...
It's not a working application - just a proof of concept.
BTW - how do I insert an actual image? ...instead of a link?...later, I figured it out
Brian
Posted: April 4th, 2008, 6:19 pm
by Citroen
Are you willing to share the javascript program?
Posted: April 5th, 2008, 12:22 am
by BrianStaff
Citroen wrote:Are you willing to share the javascript program?
Dougie - See you email
For lurkers...this will only work in IE and on a windows platform. ActiveX is an MS invention for Windows only.
Brian