Sysinfo.ocx

This is a discussion on Sysinfo.ocx within the basic.visual forums in Programming Languages category; I have been trying to run a programme built using VB6 on a Vista machine. I keep getting an error about sysinfo.ocx or one of it's dependants not being registered. I have tried to remove sysinfo from teh project Components but it tells me it is in use. What tools doe sysinfo.ocx add to the tools menu in VB6? TIA -- ats @ jbex All the power's in the hands Of people rich enough to buy it While we walk the street Too chicken to even try it The Clash - White Riot...

Go Back   Application Development Forum > Programming Languages > basic.visual

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-19-2008, 09:35 AM
ats@jbex
Guest
 
Default Sysinfo.ocx

I have been trying to run a programme built using VB6 on a Vista machine. I
keep getting an error about sysinfo.ocx or one of it's dependants not being
registered. I have tried to remove sysinfo from teh project Components but
it tells me it is in use. What tools doe sysinfo.ocx add to the tools menu
in VB6?

TIA

--
ats@jbex

All the power's in the hands
Of people rich enough to buy it
While we walk the street
Too chicken to even try it

The Clash - White Riot
Reply With Quote
  #2  
Old 08-19-2008, 10:19 AM
Mike Williams
Guest
 
Default Re: Sysinfo.ocx

On 19 Aug, 14:35, "ats@jbex" <al...@allenjones.NOSPAM.co.PLEASE.uk>
wrote:

> I have been trying to run a programme built
> using VB6 on a Vista machine. I keep getting
> an error about sysinfo.ocx or one of it's
> dependants not being registered. I have
> tried to remove sysinfo from teh project
> Components but it tells me it is in use.
> What tools doe sysinfo.ocx add to the
> tools menu in VB6?


I've never used that OCX myself but I've just set a reference to it in
a new project and the only Control it adds to the ToolBox is a SysInfo
control, the name of which defaults to SysInfo1 when you first drop
one onto a Form, although it may of course have been named something
completely different. On a VB Form it's icon looks like a flat screen
green monitor with a small yellow rule at an angle and a very large
"two pin" electrical plug in front. Looking at its methods it doesn't
seem to do anything that you cannot do by other means, so you should
be able to get rid of it. There must be at least one of them on at
least one of the Forms in your project, but sometimes people "hide"
things in the IDE that aren't actually visible at runtime by
deliberately setting their Left or Top property in the IDE to a
negative value, so you may not actually see it on a Form. Try adding a
ListBox to each Form in your project and use the following code in
each Form's Load event (assuming the ListBox is called List1):

Dim c1 As Control
For Each c1 In Me.Controls
If TypeOf c1 Is SysInfo Then
List1.AddItem c1.Name
End If
Next c1

At least then you will know whether there are in fact any such
Controls on any of your Forms and you will know the names of them,
even if the names have been changed from the default, and so you
should easily be able to find them.

Mike





Reply With Quote
  #3  
Old 08-19-2008, 10:28 AM
Steve Gerrard
Guest
 
Default Re: Sysinfo.ocx

Mike Williams wrote:
> Looking at its methods it doesn't
> seem to do anything that you cannot do by other means, so you should
> be able to get rid of it.


It does raise some events for system changes, though, that are not so easy to do
yourself. The systems color change and display change events are useful for
updating the display, for instance.


Reply With Quote
  #4  
Old 08-20-2008, 03:57 AM
Jan Hyde (VB MVP)
Guest
 
Default Re: Sysinfo.ocx

"ats@jbex" <allen@allenjones.NOSPAM.co.PLEASE.uk>'s wild
thoughts were released on Tue, 19 Aug 2008 13:35:07 GMT
bearing the following fruit:

>I have been trying to run a programme built using VB6 on a Vista machine. I
>keep getting an error about sysinfo.ocx or one of it's dependants not being
>registered. I have tried to remove sysinfo from teh project Components but
>it tells me it is in use. What tools doe sysinfo.ocx add to the tools menu
>in VB6?


Open each form in notepad, at the top there will be
reference to this file in any form that is using it.

--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde
Reply With Quote
  #5  
Old 08-20-2008, 04:20 AM
ats@jbex
Guest
 
Default Re: Sysinfo.ocx

On Wed, 20 Aug 2008 08:57:15 +0100, Jan Hyde (VB MVP) wrote:

> "ats@jbex" <allen@allenjones.NOSPAM.co.PLEASE.uk>'s wild
> thoughts were released on Tue, 19 Aug 2008 13:35:07 GMT
> bearing the following fruit:
>
>>I have been trying to run a programme built using VB6 on a Vista machine. I
>>keep getting an error about sysinfo.ocx or one of it's dependants not being
>>registered. I have tried to remove sysinfo from teh project Components but
>>it tells me it is in use. What tools doe sysinfo.ocx add to the tools menu
>>in VB6?

>
> Open each form in notepad, at the top there will be
> reference to this file in any form that is using it.


Thanks to all for your help. I have found the tool on the form and am now
going to try getting rid of it.
--
ats@jbex

Every year is the same
And I feel it again,
I'm a loser - no chance to win

The Who - I'm One
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:27 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.