Discussions Search    Reviews    Search Aid    Buzzzz    Google@Omgili    Q&A Add to iGoogle   Bookmark and Share
Omgili, forum search, forums search, search forums, discussion search,discussions search, search discussions, board search, boards search, search boards
  Advanced Search

Form load failure


On Wed, 27 Aug 2008 12:10:02 -0500, "jpm" <...@nojunkfromlosers.andmorons

VB6

Problem: Calling a standard form (e.g. Form1.Load) from the 'main' form in
an application.

The form loads just fine for several users. However, for one user, the
form doesn't become visible. All machines have OS WinXP SP 2 or 3
installed. Other forms in the application work fine for all users.

Any ideas?

Thanks,
Jim M.




On Wed, 27 Aug 2008 10:32:59 -0700, "Bob Butler" <...@nospam.ever


"jpm" <...@TK2MSFTNGP04.phx.gbl...

Does your app save & restore position of the form? If so it may be
off-screen or minimized. If not you will likely need to add code in the
caller to report any error and code in the form to trace the Initialize,
Load, and Paint events to see if it is actually loading, if it is visible
and what the WindowState and position values are.

On Wed, 27 Aug 2008 15:36:18 -0400, "Jeff Johnson" <...@enough.spam

"jpm" <...@TK2MSFTNGP04.phx.gbl...


Going along with Bob's suggestion of the form possibly being off-screen:
Tell the user to start the program. Then he should press Ctrl+Spacebar and
then type M. Now he should hit an arrow key (left/right/up/down, doesn't
matter which). Now move the mouse. If the window was off-screen it should
magically appear. Click a mouse button to "drop" it.


On Wed, 27 Aug 2008 13:35:16 -0400, "expvb" <...@cox.net

"jpm" <...@TK2MSFTNGP04.phx.gbl...

There is no Load method for Forms, perhaps you mean Load statement? Load
statement loads a form, but it doesn't show it. You have to use the Show
method. Perhaps if you post some code, or code that duplicate the problem we
can help.



On Wed, 27 Aug 2008 13:22:58 -0500, "jpm" <...@nojunkfromlosers.andmorons

Geez oh Pete.

I wrote Form1.Load. I mean Form1.Show.
Anyhow, I'll track through the events that fire during the initial Load/Show
process. Should've done that already.
There's no code to post. That's part of the frustration; I'm doing nothing
special at all. We'll see whether normal events fire . . .

"expvb" <...@TK2MSFTNGP03.phx.gbl...


On Wed, 27 Aug 2008 16:17:51 -1000, "Randem" <...@randem.com

Trace your app with this http://www.randem.com/rstools.html

Look at the log, it will tell you every event that fired and the order it
fired in. In general the program flow.

--
Randem Systems, Inc.
Your Installation Specialist
Makers of InnoScript for Inno Setup.
It creates the script for you from a vbp, vbg, vbproj or setup.lst file.
http://www.innoscript.com/innoscript.html
http://www.randem.com/installerproblems.html



"jpm" <...@TK2MSFTNGP02.phx.gbl...


Discussion Title: Form load failure
Title Keywords: Form  load  failure 
 Latest discussions from this group  (microsoft.public.vb.general.discussion)
vb timer and vb form  
[19 Nov 2008]
On Wed, 19 Nov 2008 00:22:03 -0800, sophie <sophie@discussio ns.microsoft.com hi, I...
I have a timer in one form. and it is a subform. In the form_load function, i want to set the...
how to write into text file?  
[19 Nov 2008]
Hi, I want to open a text file and write few lines from 5 lines above the EOF. Please help...
On Wed, 19 Nov 2008 09:23:50 -0500, "Jeff Johnson" <i.get@enough.spa m <divakar.rp@...
SaveSetting and Unicode  
[19 Nov 2008]
On Wed, 19 Nov 2008 04:17:47 -0300, "Eduardo" <mm@mm.com Hi all, I'm saving an UDT into...
into the registry first converting it to String with CopyMemory and then saving it just with...
More...