Runs in design mode, NOT Run Time. 
Author Message
 Runs in design mode, NOT Run Time.

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!!!



Mon, 06 Dec 1999 03:00:00 GMT  
 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!!!



Mon, 06 Dec 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Runs in Design Mode, NOT Run Time

2. Determining Run-Time/Design-Time mode

3. Code running in design time or run-time?

4. MsgBox pauses App at Design time but not run time

5. Creating forms at run time, not design time.

6. Programmatically differentiate between Design Mode and Run Time

7. How to detect run-time or design mode

8. Programmatically differentiate between Design Mode and Run Time

9. Determine whether running in design mode or not

10. ?: Want to determine whether program runs in design mode or not

11. Assign a treeview at design run time to other at design time

12. change from running mode to design mode

 

 
Powered by phpBB® Forum Software