Help with activeX control and 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 :-)

4,989 views 10 replies
Reply #1 Top

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?

Reply #2 Top

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

Reply #3 Top

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

By skarny at 2012-01-13

Reply #4 Top

Quoting RedneckDude, reply 2
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

Reply #5 Top

\o/

Reply #6 Top

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

Reply #7 Top

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

Reply #8 Top

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.

 

Reply #9 Top

Quoting RomanDA, reply 4
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
:blush:

Reply #10 Top

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