
Runs in design mode, NOT Run Time.
Dan,
When mysteries pop up like this I place a series of numbered MsgBoxes at
each code level and see which one comes up before the error.
ie.
Private Sub jump_adjmach_Click()
MsgBox "1"
adjmach.show
MsgBox "2"
adjmach.WindowState = 2
msgBox "3"
adjmach.SetFocus
End Sub
Good luck.
Oh, btw. You didn't ask but I thought I'd give you a pointer anyway. I
HIGHLY recomend using standard naming conventions. It took me a moment to
realize that "adjmach" was a form. It helps others who read your code and
when you read others code (and believe me you will be reading others code!)
it will be easier for you to read.
--
Peace,
James Wj Snyder
Shattered Rose Studio
** ClubWin Member **
www.shatteredrose.com
Quote:
> Hi fellow VB jocks,
> I'm Dan from Tennessee.
> I have written an app that runs fine in design mode (F5 while
programming).
> I compile it and run the EXE and it stops at a point in my code where I
am
> switching from one form to another by clicking a button. The code for
this
> button is simply:
> Private Sub jump_adjmach_Click()
> adjmach.show
> adjmach.WindowState = 2
> adjmach.SetFocus
> End Sub
> When the executable hits this, I get:
> Run Time Error 53
> File Note Found: '??'
> where the "??" is always two characters of who knows what. It's never the
> same.
> I'm writing in VB4 Professional 16 bit mode. Windows 95 Op Sys.
> Please Help If you Can. THANKS!!!