PM3 Active X Control and Visual Studio 2008

Post questions and issues with Concept2 PM3 SDK
Post Reply
User avatar
ulu
2k Poster
Posts: 291
Joined: March 16th, 2006, 7:58 pm
Location: Yellowknife, NWT

PM3 Active X Control and Visual Studio 2008

Post by ulu » April 1st, 2008, 8:09 pm

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
Jim
[url=http://67.199.38.245/c2coastal/]Eh!Team ROWING THE COAST of the WORLD[/url] <--- click here

User avatar
Citroen
SpamTeam
Posts: 8062
Joined: March 16th, 2006, 3:28 pm
Location: A small cave in deepest darkest Basingstoke, UK

Post by Citroen » April 2nd, 2008, 2:18 pm

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

User avatar
c2scott
2k Poster
Posts: 218
Joined: March 19th, 2006, 6:31 pm

Post by c2scott » April 2nd, 2008, 6:43 pm

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

User avatar
Chris Brett
500m Poster
Posts: 61
Joined: May 25th, 2006, 10:07 am

Post by Chris Brett » April 3rd, 2008, 8:02 am

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

User avatar
ulu
2k Poster
Posts: 291
Joined: March 16th, 2006, 7:58 pm
Location: Yellowknife, NWT

Post by ulu » April 3rd, 2008, 8:25 pm

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
Jim
[url=http://67.199.38.245/c2coastal/]Eh!Team ROWING THE COAST of the WORLD[/url] <--- click here

User avatar
BrianStaff
2k Poster
Posts: 220
Joined: February 14th, 2008, 2:20 pm
Location: Scottsdale, Arizona

Post by BrianStaff » April 4th, 2008, 11:18 am

I was able to get the ActiveX working inside a browser (IE7) using javascript.

see here...
Image

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
M 65 / 6'3" / 234lbs as of Feb 14, 2008...now 212
Started Rowing: 2/22/2008
Vancouver Rowing Club - Life Member(Rugby Section)
PB: 500m 1:44.0 2K 7:57.1 5K 20:58.7 30' 6866m

User avatar
Citroen
SpamTeam
Posts: 8062
Joined: March 16th, 2006, 3:28 pm
Location: A small cave in deepest darkest Basingstoke, UK

Post by Citroen » April 4th, 2008, 6:19 pm

Are you willing to share the javascript program?

User avatar
BrianStaff
2k Poster
Posts: 220
Joined: February 14th, 2008, 2:20 pm
Location: Scottsdale, Arizona

Post by BrianStaff » April 5th, 2008, 12:22 am

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
M 65 / 6'3" / 234lbs as of Feb 14, 2008...now 212
Started Rowing: 2/22/2008
Vancouver Rowing Club - Life Member(Rugby Section)
PB: 500m 1:44.0 2K 7:57.1 5K 20:58.7 30' 6866m

Post Reply