| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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. |
|
#4
| |||
| |||
| "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 |
|
#5
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.