Help with activeX control and DesktopX

Thursday, January 5, 2012 by Skarny | Discussion: DesktopX

Asking for help again I'm not a proper programmer and I can't seem to get this free activeX control to work in DesktopX.

http://www.vbaccelerator.com/home/VB/Code/Controls/TreeView/Multi-Column_TreeView_Control/article.asp

I've downloaded other trial version activeX controls and they install/register and I can select them via the DesktopX script window and then use them using the methods and properties.

But this one (the only free one with decent functions) I can only get to work in VBA applications (VBA = Microsoft Access).

If I select it from the controls list in DesktopX scripting window it appears to create the control on the desktop, but then any attempt to use the methods or properties returns a 'Object has been unloaded' message. The control has dependencies (which are also downloadable at the above link) which I've also registered correctly.

Couldn't find much info on this error on Google.

Does anyone know what might need done to get this control to work? I'm guessing there is some proper programming rule or method I don't know about.

Thanks in advance for any help

Skarny
Reply #1 Tuesday, January 10, 2012 7:54 PM

Anyone? no VB programmers who can maybe point me in the right direction on how to modify the source so it works properly with DesktopX?

RedneckDude
Reply #2 Tuesday, January 10, 2012 8:04 PM

I'd check with sViz, or maybe littleboy. Romanda is hard to reach.

Skarny
Reply #3 Friday, January 13, 2012 7:44 AM

I've PM'd svis and littleboy. I'm trying to make the treeview myself...

By [URL=http://profile.imageshack.us/user/skarny]skarny[/URL] at 2012-01-13

RomanDA
Reply #4 Friday, January 13, 2012 8:36 AM

RedneckDude
I'd check with sViz, or maybe littleboy. Romanda is hard to reach.

Its called working to damn hard.. LOL

Ill look at it, been a VERY long time since i messed with ActiveX

ZubaZ
Reply #5 Friday, January 13, 2012 8:41 AM

RomanDA
Reply #6 Friday, January 13, 2012 9:39 AM

its going to be a few days, LOTS going on this weekend into early next week.

sViz
Reply #7 Friday, January 13, 2012 5:40 PM

Hey, Skarny. I don't have any experience with ActiveX. How do you register new ActiveX controls?

Skarny
Reply #8 Friday, January 13, 2012 5:48 PM

RomanDA Thank you for offering to help - I don't mind waiting - but I'll also keep working on my dxTreeView in case we don't get anywhere.

sViz - registering an ActiveX in Windows 7 is not as easy as in XP due to the tighter administrator controls.

You need to start cmd.exe in Administrator mode (I go to start menu, type cmd.exe in the search box, right click the result and select 'run as administrator'

Then you run regsvr32.exe <path to dll or ocx>. It gives you a prompt advising if it was successful.

Once a control is registered, it becomes visible in the DesktopX list of controls, or can be created via code (for those without GUI elements) e.g. ImageMagick.

In regards to this one I'm trying to get working, I've already registered it ok, it's just the way it is coded it doesn't seem to initialize properly by DesktopX.
I'm thinking the source code (at the website) could be tweaked to make it work, but I'm not even sure where to start to do that Which is why I've asked if we have any VB programmer types on board.

 

RedneckDude
Reply #9 Friday, January 13, 2012 5:52 PM

RomanDA
Quoting RedneckDude, reply 2I'd check with sViz, or maybe littleboy. Romanda is hard to reach.

Its called working to damn hard.. LOL

Ill look at it, been a VERY long time since i messed with ActiveX

sViz
Reply #10 Friday, January 13, 2012 6:04 PM

Okay, thanks. I dl'ed the full source zip file. I'll try it later today.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01