borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2011 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (Print MSFlexGrid Black) New Topic New Poll Post Reply
AndreaVB Forum : VB General : VB6 programs wont run in Windows 7 Solved Topic
Poster Message
Limey
Level: Protégé

Registered: 26-01-2009
Posts: 6

icon VB6 programs wont run in Windows 7

I have several programs I have written using VB6 which will run perfect on Windows XP but will not run on my Windows 7 unless they are compiled into .exe files.
Can anybody help me with this problem?

16-11-2011 at 05:56 AM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 622
icon Re: VB6 programs wont run in Windows 7

When you say that the programs run on XP I assume that you dont mean as a compiled .exe but in debug mode from within the VB6 IDE otherwise you would not mention the fact they run OK as an exe in Win7.
That being the case you will probably find it is a matter of security privilege - Win7 runs everything with the least possible privilege, even if you are logged in with an "Administrator" account. Try opening the VB6 IDE with "Run As Administrator" then running your program.



____________________________
multi-tasking - the ability to hang more than one app. at the same time.

24-11-2011 at 03:18 PM
View Profile Send Email to User Show All Posts | Quote Reply
Limey
Level: Protégé

Registered: 26-01-2009
Posts: 6
icon Re: VB6 programs wont run in Windows 7

Thank you for the reply.

You stated, "Try opening the VB6 IDE with "Run As Administrator" then running your program."

Even though I have been using computers for over 15 years  I do not know how to do this as I have never set up an administrator system.

Some programs I can run in the debug mode from within the VB6 IDE but it seems that only the programs that I want to move the curser by using this code,

SendKeys "(Tab)" Tab to next posistion
End Sub

'I use this to trick the system into thinking the tab key was pressed'

I get an error message stating "run time error '70':
Permision denied"

Limey

07-12-2011 at 03:13 AM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 622
icon Re: VB6 programs wont run in Windows 7

Right-Click on the VB6 program (or shortcut) icon to open a pop-up context menu - the option is on there.
If you are the only user for the PC then your User Account will be an Account with Administrator priviledges, so VB6 will open straight away. If not, then you will need to enter the password of a user that is an Administrator before it opens.

____________________________
multi-tasking - the ability to hang more than one app. at the same time.

08-12-2011 at 04:40 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : VB6 programs wont run in Windows 7 Solved Topic
Next Topic (Print MSFlexGrid Black) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2011 Andrea Tincaniborder