Solved

16 bit visual basic version 4 problem

Posted on 2003-10-23
4
140 Views
Last Modified: 2013-11-25
Hello,

I support an old software product that resides on a windows 98 computer.
This application is written in VB4 16 bit version.  The program all of a sudden (my clients swear they did nothing to the computer) started working incorrectly.  The problem is that when the program is run the icon appears in the task bar but the window does not show up on the screen.  If you click on the taskbar icon it does not open up on top.  The program doesn't seem to work correctly and I can't figure out why.

I have reloaded VB4 and have re-booted the program. No change.  I re-compiled the code into a new executable and it had no affect.

I have run into this problem twice before (the same program runs in 4 different facilities) and reloading VB and/or recompiling has solved the problem.  

I am assuming there is some old DLL or 16 bit way of doing things that is getting stepped on by some newer software but I do not know enough about what is going on to be able to solve this myself.

Any ideas would be greatly appreciated.  

Thanks

John
0
Comment
Question by:jnri
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
JCinDE earned 250 total points
ID: 9608367
Look for it INI file. It probably stores its window position there and stored a corrupted position. You can probably just edit the INI file directly and delete the lines for the window position.

Alternatively, when you click the button on the task bar, hit ALT+SPACE and see if a system menu appears. If 'Move' is an option on the system menu, select it with the KEYBOARD and hit ENTER. Then use the arrow keys to move the window and it'll probably quickly reappear.

It won't work to use the mouse for this.
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 9613559
Or right click on toolbar and choose cascade window when you app is opened
0
 

Author Comment

by:jnri
ID: 9614292
Thanks.. the move thing seemed to work. Any ideas why this would happen?.. Not important just curious.


0
 
LVL 5

Expert Comment

by:JCinDE
ID: 9614367
Could be that whereever the window position is stored, that file got corrupted somehow. Or perhaps someone change the screen resolution to a higher setting, ran the program and then changed the screen resolution back.

Most likely, though, it happened because the program exited when it was minimized and it wasn't written to handle that gracefully. Tell them not to shut down the computer when the program is running (especially if it's minimized) and not to close the program by right-clicking the task button when it's minimized.

At any rate, you know how to fix it if it happens again.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now